Exists Method

Database.Exists Method

Checks whether or not the database exists on the server.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Exists() Checks whether or not the database exists on the server.
Public method Static member Exists(DbConnection) Checks whether or not the database exists on the server.
Public method Static member Exists(String) Checks whether or not the database exists on the server. The connection to the database is created using the given database name or connection string in the same way as is described in the documentation for the DbContext class.
Top
Show:
© 2016 Microsoft