DbProviderServices.DbDatabaseExists Metoda

Definicja

Zwraca wartość wskazującą, czy danej bazy danych istnieje na serwerze i czy obiekty schematu zawarte w storeItemCollection zostały utworzone.

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

Parametry

connection
DbConnection

Połączenie z bazą danych, której istnienie jest weryfikowane przez tę metodę.

commandTimeout
Nullable<Int32>

Limit czasu wykonywania dla wszystkich poleceń potrzebnych do określenia istnienia bazy danych.

storeItemCollection
StoreItemCollection

Struktura bazy danych, której istnienie jest określane przez tę metodę.

Zwraca

Boolean

true jeśli baza danych wskazywana przez połączenie i parametr storeItemCollection istnieje; w przeciwnym false razie .

Dotyczy