예제 #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);