Example #1
0
 public static void Main(string[] args)
 {
     using (var db = new FootballBettingContext())
     {
         db.Database.EnsureDeleted();
         db.Database.EnsureCreated();
     }
 }
Example #2
0
        public static void Main()
        {
            using (FootballBettingContext context = new FootballBettingContext())
            {
                context.Database.EnsureDeleted();

                context.Database.EnsureCreated();
            }
        }