DbProviderServices.DbDeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection) DbProviderServices.DbDeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection) DbProviderServices.DbDeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection) Method

Definition

Deletes all store objects specified in the store item collection from the database and the database itself.

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

Parameters

connection
DbConnection DbConnection 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 StoreItemCollection StoreItemCollection

The structure of the database to be deleted.

Applies to