public static void DeleteDatabase() { using (var context = new Dining(ConnectionString)) { if (context.DatabaseExists()) { // delete database if it exist context.DeleteDatabase(); } } }
public static void CreateDatabase() { using (var context = new Dining(ConnectionString)) { if (!context.DatabaseExists()) { // create database if it does not exist context.CreateDatabase(); } } }