public static void Initializer(VisitasContext context) { context.Database.EnsureCreated(); if (context.Visitantes.Any()) { return; } var visitantes = new Visitante[] { new Visitante { Nome = "Willian", Sobrenome = "Alves", Email = "*****@*****.**" }, new Visitante { Nome = "Jorge", Sobrenome = "Casagrande", Email = "*****@*****.**" }, new Visitante { Nome = "Nego", Sobrenome = "Nei", Email = "*****@*****.**" } }; context.Visitantes.AddRange(visitantes); context.SaveChanges(); }
internal static void Initialize(VisitasContext context) { throw new NotImplementedException(); }