DbProviderServices.DbDeleteDatabase Method

Definition

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

C#
protected virtual void DbDeleteDatabase(System.Data.Common.DbConnection connection, int? commandTimeout, System.Data.Metadata.Edm.StoreItemCollection storeItemCollection);

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 structure of the database to be deleted.

Applies to

Proizvod Verzije
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1