コード例 #1
0
 public void Delete(Dinner dinner)
 {
     db.RSVPs.DeleteAllOnSubmit(dinner.RSVPs);
     db.Dinners.DeleteOnSubmit(dinner);
 }
コード例 #2
0
 public DinnerFormViewModel(Dinner dinner)
 {
     Dinner = dinner;
     Countries = new SelectList(PhoneValidator.Countries, dinner.Country);
 }
コード例 #3
0
 public void Add(Dinner dinner)
 {
     db.Dinners.InsertOnSubmit(dinner);
 }