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);

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

Entity Framework 6.2.0 and other versions
Product Versions
Entity Framework 4.3.1, 5.0.0, 6.2.0

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);

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

Entity Framework 6.2.0
Product Versions
Entity Framework 6.2.0

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);

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

Entity Framework 6.2.0
Product Versions
Entity Framework 6.2.0

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);

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

Entity Framework 6.2.0
Product Versions
Entity Framework 6.2.0