DbMigration.DropTable Method

 

Adds an operation to drop a table.

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

NameDescription
System_CAPS_protmethodDropTable(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_CAPS_protmethodDropTable(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_CAPS_protmethodDropTable(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_CAPS_protmethodDropTable(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.


DbMigration.DropTable Method (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.

[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable(
	string name,
	IDictionary<string, IDictionary<string, object>> removedColumnAnnotations,
	object anonymousArguments = null
)

Parameters

name
Type: System.String

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

removedColumnAnnotations
Type: System.Collections.Generic.IDictionary<String, IDictionary<String, Object>>

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

anonymousArguments
Type: System.Object

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


DbMigration.DropTable Method (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.

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
protected internal void DropTable(
	string name,
	IDictionary<string, object> removedAnnotations,
	IDictionary<string, IDictionary<string, object>> removedColumnAnnotations,
	object anonymousArguments = null
)

Parameters

name
Type: System.String

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

removedAnnotations
Type: System.Collections.Generic.IDictionary<String, Object>

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

removedColumnAnnotations
Type: System.Collections.Generic.IDictionary<String, IDictionary<String, Object>>

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

anonymousArguments
Type: System.Object

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


DbMigration.DropTable Method (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.

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable(
	string name,
	IDictionary<string, object> removedAnnotations,
	object anonymousArguments = null
)

Parameters

name
Type: System.String

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

removedAnnotations
Type: System.Collections.Generic.IDictionary<String, Object>

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

anonymousArguments
Type: System.Object

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


DbMigration.DropTable Method (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.

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void DropTable(
	string name,
	object anonymousArguments = null
)

Parameters

name
Type: System.String

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

anonymousArguments
Type: System.Object

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