Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 //for testing
 public EmployeeRepo(TenderSearchContext context)
 {
     this.context = context;
 }