diff --git a/EntityFrameworkCore.Console/Program.cs b/EntityFrameworkCore.Console/Program.cs index 5df3873..149b3e8 100644 --- a/EntityFrameworkCore.Console/Program.cs +++ b/EntityFrameworkCore.Console/Program.cs @@ -3,6 +3,8 @@ using EntityFrameworkCore.Domain; using Microsoft.EntityFrameworkCore; using var context = new DeadBallZoneLeagueDbContext(); +// context.Database.Migrate(); // Can be used to automatically migrate on run. +context.Database.EnsureCreated(); // var teamOne = await context.Teams.FirstAsync(t => t.Id == 1); // var teamTwo = await context.Teams.FirstAsync(t => t.Id == 2);