public void Should_UpdateToLatestSchema() { Database.SetInitializer<TheKidsDbContext>(new MigrateDatabaseToLatestVersion<TheKidsDbContext, Configuration>()); var context = new TheKidsDbContext(); var addresses = context.Addresses.ToList(); }
public ActionResult Index() { var context = new TheKidsDbContext(); var addresses = context.Children.ToList(); return View(); }