private static void RecreateDatabase() { var context = new ScooterContext(); context.Database.EnsureDeleted(); context.Database.EnsureCreated(); }
private void ClearDatabase() { var context = new ScooterContext(); context.RemoveRange(context.Scooters); context.RemoveRange(context.ScooterModels); context.RemoveRange(context.Rides); context.RemoveRange(context.Customers); context.SaveChanges(); }
// Level 1 internal static string[] GetAllCustomerNamesSorted() { var context = new ScooterContext(); throw new NotImplementedException(); }
// Level 1 internal static void AddCustomer(string name) { var context = new ScooterContext(); throw new NotImplementedException(); }