Пример #1
0
 public void UpdateSeatType(SeatType seatType)
 {
     DispositionDataContext dispositionDb = new DispositionDataContext();
     var updateSeatType = (from s in dispositionDb.SeatTypes
                     where s.TypeID == seatType.TypeID
                     select s).Single();
     updateSeatType.Code = seatType.Code;
     updateSeatType.Description = seatType.Description;
     updateSeatType.Obsolete = seatType.Obsolete;
     dispositionDb.SubmitChanges();
 }
Пример #2
0
 public void CreateSeatType(SeatType seatType)
 {
     DispositionDataContext dispositionDb = new DispositionDataContext();
     dispositionDb.SeatTypes.InsertOnSubmit(seatType);
     dispositionDb.SubmitChanges();
 }
Пример #3
0
 partial void UpdateSeatType(SeatType instance);
Пример #4
0
 partial void DeleteSeatType(SeatType instance);
Пример #5
0
 partial void InsertSeatType(SeatType instance);