示例#1
0
 // insert
 public void Add(Dinner dinner)
 {
     // inserts the dinner into db
     db.Dinners.InsertOnSubmit(dinner);
 }
 partial void DeleteDinner(Dinner instance);
 partial void InsertDinner(Dinner instance);
 partial void UpdateDinner(Dinner instance);
        //
        // Insert/Delete Methods

        public void Add(Dinner dinner)
        {
            db.Dinners.Add(dinner);
            Save();
        }