public static void Initialize(RFSContext context) { context.Database.EnsureCreated(); if (context.Users.Any()) { return; } for (int i = 0; i < 10000; i++) { IdentityUser user = new IdentityUser { CompanyName = "Bupa", Email = "mahmoud" + i + "@hotmail.com", IsActive = true, LanguagePreferred = 0, Mobile = "0555555555", Name = "MAhmoud Hazouri" + i, NationalID = i.ToString(), Password = "******", UserType = Core.Enums.UserType.Employee, UserName = "******" + i }; context.Users.Add(user); } context.SaveChanges(); }
public EmployeesController(RFSContext context) { db = context; }