共用方式為


DbProviderServices.DbDeleteDatabase 方法

定義

刪除指定的資料庫。

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

參數

connection
DbConnection

需要刪除之現有資料庫的連接。

commandTimeout
Nullable<Int32>

刪除資料庫時所需之任何命令的執行逾時時間。

storeItemCollection
StoreItemCollection

來自模型的所有存放區專案的集合。 這個參數不再用於資料庫刪除。

適用於