Beispiel #1
0
        static void Main(string[] args)
        {
            FootballBettingContext context = new FootballBettingContext();

            context.Database.EnsureDeleted();
            context.Database.EnsureCreated();
        }
Beispiel #2
0
 public static void Main()
 {
     using (FootballBettingContext context = new FootballBettingContext())
     {
         context.Database.EnsureDeleted();
         context.Database.EnsureCreated();
     }
 }
Beispiel #3
0
        static void Main()
        {
            using (var db = new FootballBettingContext())
            {
                db.Database.EnsureDeleted();
                db.Database.EnsureCreated();
            }

            Console.WriteLine("Hello World!");
        }