public static void Initialize(ApplicationUserContext context) { context.Database.EnsureCreated(); // look for any users if (context.ApplicationUser.Any()) { return; // DB has been seeded } var ApplicationUsers = new ApplicationUser[] { new ApplicationUser { EmailAddress = "*****@*****.**", FirstName = "Admin", LastName = "Admin", Password = "******" }, new ApplicationUser { EmailAddress = "*****@*****.**", FirstName = "Tauriq", LastName = "Hendricks", Password = "******" }, new ApplicationUser { EmailAddress = "*****@*****.**", FirstName = "Senshi", LastName = "Black", Password = "******" } }; foreach (ApplicationUser u in ApplicationUsers) { context.Add(u); } context.SaveChanges(); }
public EditModel(Registeration.Data.ApplicationUserContext context) { _context = context; }
public DetailsModel(Registeration.Data.ApplicationUserContext context) { _context = context; }