Пример #1
0
 public void UpdateResponsibility(Responsibility seatResponsibility)
 {
     DispositionDataContext dispositionDb = new DispositionDataContext();
     var updateResponsibility = (from s in dispositionDb.Responsibilities
                                 where s.ResponsibilityID == seatResponsibility.ResponsibilityID
                                 select s).Single();
     updateResponsibility.Code = seatResponsibility.Code;
     updateResponsibility.Description = seatResponsibility.Description;
     updateResponsibility.Obsolete = seatResponsibility.Obsolete;
     dispositionDb.SubmitChanges();
 }
Пример #2
0
 public void CreateResponsibility(Responsibility responsibility)
 {
     DispositionDataContext dispositionDb = new DispositionDataContext();
     dispositionDb.Responsibilities.InsertOnSubmit(responsibility);
     dispositionDb.SubmitChanges();
 }
Пример #3
0
 partial void UpdateResponsibility(Responsibility instance);
Пример #4
0
 partial void DeleteResponsibility(Responsibility instance);
Пример #5
0
 partial void InsertResponsibility(Responsibility instance);