Database.Delete Method (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.
Assembly: EntityFramework (in EntityFramework.dll)
[SuppressMessageAttribute("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")] public static bool Delete( string nameOrConnectionString )
- Type: System.String
The database name or a connection string to the database.
Return ValueType: System.Boolean
True if the database did exist and was deleted; false otherwise.