//update public static void Update(VipTables vipTables) { using (restaurantEntities db = new restaurantEntities()) { db.Entry(vipTables).State = EntityState.Modified; db.SaveChanges(); } }
//delete public static void Delete(VipTables vipTables) { using (restaurantEntities db = new restaurantEntities()) { db.VipTables.Remove(vipTables); db.SaveChanges(); } }
//add public static void Add(VipTables vipTables) { using (restaurantEntities db = new restaurantEntities()) { db.VipTables.Add(vipTables); db.SaveChanges(); } }