Freigeben über


DropColumnOperation-Konstruktor (String, String, IDictionary<String, Object>, Object)

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Initialisiert eine neue Instanz der DropColumnOperation-Klasse. Entity Framework-Migrations-APIs wurden nicht für das Akzeptieren von Eingaben aus nicht vertrauenswürdigen Quellen (z. B. vom Endbenutzer einer Anwendung) entwickelt. Wenn Eingaben aus solchen Quellen akzeptiert werden sollen, müssen diese vor der Übergabe an die APIs überprüft werden, um einen Schutz vor SQL-Injection-Angriffen und anderen Gefahren sicherzustellen.

Namespace:  System.Data.Entity.Migrations.Model
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")> _
Public Sub New ( _
    table As String, _
    name As String, _
    removedAnnotations As IDictionary(Of String, Object), _
    anonymousArguments As Object _
)
'Usage
Dim table As String 
Dim name As String 
Dim removedAnnotations As IDictionary(Of String, Object)
Dim anonymousArguments As Object 

Dim instance As New DropColumnOperation(table, name, _
    removedAnnotations, anonymousArguments)
[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public DropColumnOperation(
    string table,
    string name,
    IDictionary<string, Object> removedAnnotations,
    Object anonymousArguments
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1026:DefaultParametersShouldNotBeUsed")]
public:
DropColumnOperation(
    String^ table, 
    String^ name, 
    IDictionary<String^, Object^>^ removedAnnotations, 
    Object^ anonymousArguments
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")>]
new : 
        table:string * 
        name:string * 
        removedAnnotations:IDictionary<string, Object> * 
        anonymousArguments:Object -> DropColumnOperation
public function DropColumnOperation(
    table : String, 
    name : String, 
    removedAnnotations : IDictionary<String, Object>, 
    anonymousArguments : Object
)

Parameter

  • table
    Typ: System.String
    Der Name der Tabelle, aus der die Spalte gelöscht werden soll.
  • anonymousArguments
    Typ: System.Object
    Zusätzliche Argumente, die von Anbietern verarbeitet werden können. Verwenden Sie Syntax für anonyme Typen zum Angeben von Argumenten, z. B. ' new { SampleArgument = "MyValue" }'.

Siehe auch

Verweis

DropColumnOperation Klasse

DropColumnOperation-Überladung

System.Data.Entity.Migrations.Model-Namespace