Edit

Share via


ObjectContext.DatabaseExists Method

Definition

Checks if the database that is specified as the database in the current data source connection exists on the data source.

C#
public bool DatabaseExists();

Returns

true if the database exists.

Remarks

Most of the work is delegated to the DatabaseExists method.

For more information, see Working with Data Definition Language.

Applies to

Product Versions

See also