次の方法で共有


DbProviderServices.DbDatabaseExists メソッド

定義

オーバーロード

DbDatabaseExists(DbConnection, Nullable<Int32>, StoreItemCollection)

サーバー上に特定のデータベースが存在するかどうかを示す値を返します。

DbDatabaseExists(DbConnection, Nullable<Int32>, Lazy<StoreItemCollection>)

サーバー上に特定のデータベースが存在するかどうかを示す値を返します。

DbDatabaseExists(DbConnection, Nullable<Int32>, StoreItemCollection)

サーバー上に特定のデータベースが存在するかどうかを示す値を返します。

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

パラメーター

connection
DbConnection

このメソッドによって存在がチェックされているデータベースへの接続。

commandTimeout
Nullable<Int32>

データベースの存在を確認するために必要なすべてのコマンドの実行タイムアウト。

storeItemCollection
StoreItemCollection

モデルのすべてのストア アイテムのコレクション。 このパラメーターは、データベースの存在を判断するために使用されなくなりました。

戻り値

プロバイダーが、接続のみに基づいてデータベースを推測できる場合は true。

適用対象

DbDatabaseExists(DbConnection, Nullable<Int32>, Lazy<StoreItemCollection>)

サーバー上に特定のデータベースが存在するかどうかを示す値を返します。

protected virtual bool DbDatabaseExists (System.Data.Common.DbConnection connection, Nullable<int> commandTimeout, Lazy<System.Data.Entity.Core.Metadata.Edm.StoreItemCollection> storeItemCollection);
abstract member DbDatabaseExists : System.Data.Common.DbConnection * Nullable<int> * Lazy<System.Data.Entity.Core.Metadata.Edm.StoreItemCollection> -> bool
override this.DbDatabaseExists : System.Data.Common.DbConnection * Nullable<int> * Lazy<System.Data.Entity.Core.Metadata.Edm.StoreItemCollection> -> bool
Protected Overridable Function DbDatabaseExists (connection As DbConnection, commandTimeout As Nullable(Of Integer), storeItemCollection As Lazy(Of StoreItemCollection)) As Boolean

パラメーター

connection
DbConnection

このメソッドによって存在がチェックされているデータベースへの接続。

commandTimeout
Nullable<Int32>

データベースの存在を確認するために必要なすべてのコマンドの実行タイムアウト。

storeItemCollection
Lazy<StoreItemCollection>

モデルのすべてのストア アイテムのコレクション。 このパラメーターは、データベースの存在を判断するために使用されなくなりました。

戻り値

プロバイダーが、接続のみに基づいてデータベースを推測できる場合は true。

注釈

ストア項目コレクションが不要な場合は作成しないように、このメソッドをオーバーライドします。 既定の実装では Lazy が評価され、このメソッドの他のオーバーロードが呼び出されます。

適用対象