DbProviderServices.DbDatabaseExists(DbConnection, Nullable<Int32>, StoreItemCollection) DbProviderServices.DbDatabaseExists(DbConnection, Nullable<Int32>, StoreItemCollection) DbProviderServices.DbDatabaseExists(DbConnection, Nullable<Int32>, StoreItemCollection) Method

Definition

Returns a value indicating whether a given database exists on the server and whether schema objects contained in the storeItemCollection have been created.

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, Nullable<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

Parameters

connection
DbConnection DbConnection DbConnection

Connection to a database whose existence is verified by this method.

commandTimeout
Nullable<Int32>

Execution timeout for any commands needed to determine the existence of the database.

storeItemCollection
StoreItemCollection StoreItemCollection StoreItemCollection

The structure of the database whose existence is determined by this method.

Returns

true if the database indicated by the connection and the storeItemCollection parameter exists; otherwise, false.

Applies to