DbProviderServices.DeleteDatabase 方法

定义

删除指定的数据库。

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

参数

connection
DbConnection

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

commandTimeout
Nullable<Int32>

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

storeItemCollection
StoreItemCollection

模型中所有存储项的集合。 此参数不再用于删除数据库。

适用于