Exemplo n.º 1
0
 //update
 public static void Update(EmployeesTypes employeesTypes)
 {
     using (restaurantEntities db = new restaurantEntities())
     {
         db.Entry(employeesTypes).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
Exemplo n.º 2
0
 //delete
 public static void Delete(EmployeesTypes employeesTypes)
 {
     using (restaurantEntities db = new restaurantEntities())
     {
         db.EmployeesTypes.Remove(employeesTypes);
         db.SaveChanges();
     }
 }
Exemplo n.º 3
0
 //add
 public static void Add(EmployeesTypes employeesTypes)
 {
     using (restaurantEntities db = new restaurantEntities())
     {
         db.EmployeesTypes.Add(employeesTypes);
         db.SaveChanges();
     }
 }