DbProviderServices.DbDatabaseExists Metoda

Definicja

Zwraca wartość wskazującą, czy dana baza danych istnieje na serwerze i czy obiekty schematu zawarte w kolekcji 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

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

Dotyczy