public void SeedPhoneBooks(TechAssessmentDbContext context) { var phoneBooks = new[] { new PhoneBook { Name = "Default" } }; context.PhoneBooks.AddRange(phoneBooks); context.SaveChanges(); }
public void SeedUsers(TechAssessmentDbContext context) { var users = new[] { new User { Username = "******", FirstName = "System", LastName = "Administrator" }, new User { Username = "******", FirstName = "Test", LastName = "User" } }; context.Users.AddRange(users); context.SaveChanges(); }