System.Data.Common.DbProviderServices.DatabaseExists(System.Data.Common.DbConnection, System.Nullable, System.Data.Metadata.Edm.StoreItemCollection)

Here are the examples of the csharp api class System.Data.Common.DbProviderServices.DatabaseExists(System.Data.Common.DbConnection, System.Nullable, System.Data.Metadata.Edm.StoreItemCollection) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: referencesource
Source File: ObjectContext.cs
View license
public bool DatabaseExists()
        {
            DbConnection storeConnection = this._connection.StoreConnection;
            DbProviderServices services = DbProviderServices.GetProviderServices(this.GetStoreItemCollection().StoreProviderFactory);
            return services.DatabaseExists(storeConnection, this.CommandTimeout, this.GetStoreItemCollection());
        }