DbProviderServices.DbDeleteDatabase Method

Definition

Deletes the specified database.

protected virtual void DbDeleteDatabase (System.Data.Common.DbConnection connection, Nullable<int> commandTimeout, System.Data.Entity.Core.Metadata.Edm.StoreItemCollection storeItemCollection);
abstract member DbDeleteDatabase : System.Data.Common.DbConnection * Nullable<int> * System.Data.Entity.Core.Metadata.Edm.StoreItemCollection -> unit
override this.DbDeleteDatabase : System.Data.Common.DbConnection * Nullable<int> * System.Data.Entity.Core.Metadata.Edm.StoreItemCollection -> unit

Parameters

connection
DbConnection

Connection to an existing database that needs to be deleted.

commandTimeout
Nullable<Int32>

Execution timeout for any commands needed to delete the database.

storeItemCollection
StoreItemCollection

The collection of all store items from the model. This parameter is no longer used for database deletion.

Applies to