예제 #1
0
 public Employee Save(Employee e, SalesDbContext db)
 {
     db.Employees.Add(e);
     db.SaveChanges();
     return(e);
 }
예제 #2
0
 public void UploadEmployees(List <Employee> employees, SalesDbContext db)
 {
     db.Employees.AddRange(employees);
     db.SaveChanges();
 }
예제 #3
0
 public static List <Employee> Get(SalesDbContext db)
 {
     return(db.Employees.ToList());
 }