Esempio n. 1
0
 private static void RecreateDatabase()
 {
     using (var context = new SpaceShipContext())
     {
         context.Database.EnsureDeleted();
         context.Database.EnsureCreated();
     }
 }
 public DataAccess()
 {
     _context = new SpaceShipContext();
 }