Freigeben über


DropTableOperation-Konstruktor (String, IDictionary<String, Object>, IDictionary<String, IDictionary<String, Object>>, CreateTableOperation, 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 DropTableOperation-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", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")> _
Public Sub New ( _
    name As String, _
    removedAnnotations As IDictionary(Of String, Object), _
    removedColumnAnnotations As IDictionary(Of String, IDictionary(Of String, Object)), _
    inverse As CreateTableOperation, _
    anonymousArguments As Object _
)
'Usage
Dim name As String 
Dim removedAnnotations As IDictionary(Of String, Object)
Dim removedColumnAnnotations As IDictionary(Of String, IDictionary(Of String, Object))
Dim inverse As CreateTableOperation 
Dim anonymousArguments As Object 

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

Parameter

  • 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

DropTableOperation Klasse

DropTableOperation-Überladung

System.Data.Entity.Migrations.Model-Namespace