public static void Seed(this TenderSearchContext dbContext) { // Add entities for DbContext instance dbContext.Employee.Add(new Employee { Id = "test1", FirstName = "e1", LastName = "e1", Email = "*****@*****.**", PhoneNumber = "123456", Mobile = "21345", IsActive = true }); dbContext.SaveChanges(); }
//for testing public EmployeeRepo(TenderSearchContext context) { this.context = context; }