Export (0) Print
Expand All

Database.Delete Method

Entity Framework 5.0

Deletes the database on the database server if it exists, otherwise does nothing.

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 Delete() Deletes the database on the database server if it exists, otherwise does nothing.
Public method Static member Delete(DbConnection) Deletes the database on the database server if it exists, otherwise does nothing.
Public method Static member Delete(String) Deletes the database on the database server if it exists, otherwise does nothing. 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:
© 2015 Microsoft