DbMigration.DropTable Method

Definition

Overloads

DropTable(String, Object)

Adds an operation to drop a table.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

DropTable(String, IDictionary<String,IDictionary<String,Object>>, Object)

Adds an operation to drop a table.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

DropTable(String, IDictionary<String,Object>, Object)

Adds an operation to drop a table.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

DropTable(String, IDictionary<String,Object>, IDictionary<String,IDictionary<String,Object>>, Object)

Adds an operation to drop a table.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

DropTable(String, Object)

Adds an operation to drop a table.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

protected internal void DropTable (string name, object anonymousArguments = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable (string name, object anonymousArguments = null);
member this.DropTable : string * obj -> unit
Protected Friend Sub DropTable (name As String, Optional anonymousArguments As Object = null)

Parameters

name
String

The name of the table to be dropped. Schema name is optional, if no schema is specified then dbo is assumed.

anonymousArguments
Object

Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.

Attributes

Applies to

DropTable(String, IDictionary<String,IDictionary<String,Object>>, Object)

Adds an operation to drop a table.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable (string name, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IDictionary<string,object>> removedColumnAnnotations, object anonymousArguments = null);
member this.DropTable : string * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IDictionary<string, obj>> * obj -> unit
Protected Friend Sub DropTable (name As String, removedColumnAnnotations As IDictionary(Of String, IDictionary(Of String, Object)), Optional anonymousArguments As Object = null)

Parameters

name
String

The name of the table to be dropped. Schema name is optional, if no schema is specified then dbo is assumed.

removedColumnAnnotations
IDictionary<String,IDictionary<String,Object>>

Custom annotations that exist on columns of the table that is being dropped. May be null or empty.

anonymousArguments
Object

Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.

Attributes

Applies to

DropTable(String, IDictionary<String,Object>, Object)

Adds an operation to drop a table.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable (string name, System.Collections.Generic.IDictionary<string,object> removedAnnotations, object anonymousArguments = null);
member this.DropTable : string * System.Collections.Generic.IDictionary<string, obj> * obj -> unit
Protected Friend Sub DropTable (name As String, removedAnnotations As IDictionary(Of String, Object), Optional anonymousArguments As Object = null)

Parameters

name
String

The name of the table to be dropped. Schema name is optional, if no schema is specified then dbo is assumed.

removedAnnotations
IDictionary<String,Object>

Custom annotations that exist on the table that is being dropped. May be null or empty.

anonymousArguments
Object

Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.

Attributes

Applies to

DropTable(String, IDictionary<String,Object>, IDictionary<String,IDictionary<String,Object>>, Object)

Adds an operation to drop a table.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable (string name, System.Collections.Generic.IDictionary<string,object> removedAnnotations, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IDictionary<string,object>> removedColumnAnnotations, object anonymousArguments = null);
member this.DropTable : string * System.Collections.Generic.IDictionary<string, obj> * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IDictionary<string, obj>> * obj -> unit
Protected Friend Sub DropTable (name As String, removedAnnotations As IDictionary(Of String, Object), removedColumnAnnotations As IDictionary(Of String, IDictionary(Of String, Object)), Optional anonymousArguments As Object = null)

Parameters

name
String

The name of the table to be dropped. Schema name is optional, if no schema is specified then dbo is assumed.

removedAnnotations
IDictionary<String,Object>

Custom annotations that exist on the table that is being dropped. May be null or empty.

removedColumnAnnotations
IDictionary<String,IDictionary<String,Object>>

Custom annotations that exist on columns of the table that is being dropped. May be null or empty.

anonymousArguments
Object

Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.

Attributes

Applies to