示例#1
0
 public void updateMealswithGenre(int Id, MealswithGenre mealswithGenre)
 {
     _dataContext.MealswithGenres.Find(Id).mealGenre_id = mealswithGenre.mealGenre_id;
     _dataContext.MealswithGenres.Find(Id).meal_id      = mealswithGenre.meal_id;
     _dataContext.SaveChanges();
 }
示例#2
0
 public void addMealswithGenre(MealswithGenre mealswithGenre)
 {
     _dataContext.Add(mealswithGenre);
     _dataContext.SaveChanges();
 }