DbProviderServices::DeleteDatabase Method (DbConnection^, Nullable<Int32>, StoreItemCollection^)

.NET Framework (current version)
 

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

Namespace:   System.Data.Common
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public:
void DeleteDatabase(
	DbConnection^ connection,
	Nullable<int> commandTimeout,
	StoreItemCollection^ storeItemCollection
)

Parameters

connection
Type: System.Data.Common::DbConnection^

Connection to an existing database that needs to be deleted.

commandTimeout
Type: System::Nullable<Int32>

Execution timeout for any commands needed to delete the database.

storeItemCollection
Type: System.Data.Metadata.Edm::StoreItemCollection^

The structure of the database to be deleted.

.NET Framework
Available since 4.0
Return to top
Show: