DbProviderServices.DeleteDatabase(DbConnection, Nullable<Int32>, StoreItemCollection) 方法
定义
删除数据库的存储项集合中指定的所有存储对象以及数据库本身。Deletes all store objects specified in the store item collection from the database and the database itself.
public:
void DeleteDatabase(System::Data::Common::DbConnection ^ connection, Nullable<int> commandTimeout, System::Data::Metadata::Edm::StoreItemCollection ^ storeItemCollection);
public void DeleteDatabase (System.Data.Common.DbConnection connection, int? commandTimeout, System.Data.Metadata.Edm.StoreItemCollection storeItemCollection);
member this.DeleteDatabase : System.Data.Common.DbConnection * Nullable<int> * System.Data.Metadata.Edm.StoreItemCollection -> unit
Public Sub DeleteDatabase (connection As DbConnection, commandTimeout As Nullable(Of Integer), storeItemCollection As StoreItemCollection)
参数
- connection
- DbConnection
到某个需要删除的现有数据库的连接。Connection to an existing database that needs to be deleted.
删除数据库所需的任何命令的执行超时。Execution timeout for any commands needed to delete the database.
- storeItemCollection
- StoreItemCollection
要删除的数据库的结构。The structure of the database to be deleted.