Exemple #1
0
 public void Delete(Dinner dinner)
 {
     db.RSVPs.DeleteAllOnSubmit(dinner.RSVPs);
     db.Dinners.DeleteOnSubmit(dinner);
 }
Exemple #2
0
        // Insert/Delete Methods

        public void Add(Dinner dinner)
        {
            db.Dinners.InsertOnSubmit(dinner);
        }
 partial void UpdateDinner(Dinner instance);
 partial void DeleteDinner(Dinner instance);
 partial void InsertDinner(Dinner instance);