DbProviderServices.DeleteDatabase Method

Definition

Deletes the specified database.

public void DeleteDatabase (System.Data.Common.DbConnection connection, Nullable<int> commandTimeout, System.Data.Entity.Core.Metadata.Edm.StoreItemCollection storeItemCollection);
member this.DeleteDatabase : 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