Udostępnij przez


AlterTableOperation Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy AlterTableOperation. Interfejsy API migracji platformy Entity Framework nie są przeznaczone do akceptowania danych wejściowych dostarczanych przez niezaufane źródła (takie jak użytkownik końcowy aplikacji). Jeśli dane wejściowe są akceptowane z takich źródeł, należy je zweryfikować przed przekazaniem ich do tych interfejsów API w celu ochrony przed atakami polegającymi na wstrzyknięciu kodu SQL itp.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public AlterTableOperation(string name, System.Collections.Generic.IDictionary<string,System.Data.Entity.Infrastructure.Annotations.AnnotationValues> annotations, object anonymousArguments = null);
new System.Data.Entity.Migrations.Model.AlterTableOperation : string * System.Collections.Generic.IDictionary<string, System.Data.Entity.Infrastructure.Annotations.AnnotationValues> * obj -> System.Data.Entity.Migrations.Model.AlterTableOperation
Public Sub New (name As String, annotations As IDictionary(Of String, AnnotationValues), Optional anonymousArguments As Object = null)

Parametry

name
String

Nazwa tabeli, w której zmieniono adnotacje.

annotations
IDictionary<String,AnnotationValues>

Niestandardowe adnotacje w tabeli, które uległy zmianie.

anonymousArguments
Object

Dodatkowe argumenty, które mogą być przetwarzane przez dostawców. Użyj składni typu anonimowego, aby określić argumenty, np. "new { SampleArgument = "MyValue" }".

Atrybuty

Dotyczy