DbProviderServices.DbDeleteDatabase 方法

定义

从数据库和数据库本身中删除存储项集合中指定的所有存储对象。

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, 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
Protected Overridable Sub DbDeleteDatabase (connection As DbConnection, commandTimeout As Nullable(Of Integer), storeItemCollection As StoreItemCollection)

参数

connection
DbConnection

连接到需要删除的现有数据库。

commandTimeout
Nullable<Int32>

删除数据库所需的任何命令的执行超时。

storeItemCollection
StoreItemCollection

要删除的数据库的结构。

适用于