Exemple #1
0
 public static void Main()
 {
     using (var db = new MyManyToManyDBContext())
     {
         ClearDataBase(db);
     }
 }
Exemple #2
0
 private static void ClearDataBase(MyManyToManyDBContext db)
 {
     db.Database.EnsureDeleted();
     db.Database.EnsureCreated();
 }