次の方法で共有


DbProviderServices.DbDeleteDatabase メソッド

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

指定されたデータベースを削除します。

名前空間:  System.Data.Entity.Core.Common
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Protected Overridable Sub DbDeleteDatabase ( _
    connection As DbConnection, _
    commandTimeout As Nullable(Of Integer), _
    storeItemCollection As StoreItemCollection _
)
'使用
Dim connection As DbConnection 
Dim commandTimeout As Nullable(Of Integer)
Dim storeItemCollection As StoreItemCollection 

Me.DbDeleteDatabase(connection, commandTimeout, _
    storeItemCollection)
protected virtual void DbDeleteDatabase(
    DbConnection connection,
    Nullable<int> commandTimeout,
    StoreItemCollection storeItemCollection
)
protected:
virtual void DbDeleteDatabase(
    DbConnection^ connection, 
    Nullable<int> commandTimeout, 
    StoreItemCollection^ storeItemCollection
)
abstract DbDeleteDatabase : 
        connection:DbConnection * 
        commandTimeout:Nullable<int> * 
        storeItemCollection:StoreItemCollection -> unit  
override DbDeleteDatabase : 
        connection:DbConnection * 
        commandTimeout:Nullable<int> * 
        storeItemCollection:StoreItemCollection -> unit
protected function DbDeleteDatabase(
    connection : DbConnection, 
    commandTimeout : Nullable<int>, 
    storeItemCollection : StoreItemCollection
)

パラメーター

  • commandTimeout
    型 : System.Nullable<Int32>
    データベースの削除に必要なすべてのコマンドの実行タイムアウト。

参照

参照

DbProviderServices クラス

System.Data.Entity.Core.Common 名前空間