コード例 #1
0
 public void UpdateSeatPortion(SeatPortion seatPortion)
 {
     DispositionDataContext dispositionDb = new DispositionDataContext();
     var updateSeatPortion = (from s in dispositionDb.SeatPortions
                           where s.SeatPortionID == seatPortion.SeatPortionID
                           select s).Single();
     updateSeatPortion.Code = seatPortion.Code;
     updateSeatPortion.Description = seatPortion.Description;
     updateSeatPortion.Obsolete = seatPortion.Obsolete;
     dispositionDb.SubmitChanges();
 }
コード例 #2
0
 public void CreateSeatPortion(SeatPortion seatPortion)
 {
     DispositionDataContext dispositionDb = new DispositionDataContext();
     dispositionDb.SeatPortions.InsertOnSubmit(seatPortion);
     dispositionDb.SubmitChanges();
 }
コード例 #3
0
 partial void UpdateSeatPortion(SeatPortion instance);
コード例 #4
0
 partial void DeleteSeatPortion(SeatPortion instance);
コード例 #5
0
 partial void InsertSeatPortion(SeatPortion instance);