예제 #1
0
파일: DS_Purchase.cs 프로젝트: uwitec/ds568
 public void Update(DS_Purchase Purchase)
 {
     using (var ct = new DS_PurchaseDataContext(DbHelperSQL.Connection))
     {
         ct.DS_Purchase.Attach(Purchase, true);
         ct.SubmitChanges();
     }
 }
예제 #2
0
파일: DS_Purchase.cs 프로젝트: uwitec/ds568
 public void Add(DS_Purchase Purchase)
 {
     using (var ct = new DS_PurchaseDataContext(DbHelperSQL.Connection))
     {
         ct.DS_Purchase.InsertOnSubmit(Purchase);
         ct.SubmitChanges();
     }
 }
예제 #3
0
파일: DS_Purchase.cs 프로젝트: uwitec/ds568
 public void Delete(int ID)
 {
     using (var ct = new DS_PurchaseDataContext(DbHelperSQL.Connection))
     {
         DS_Purchase st = ct.DS_Purchase.Single(a => a.ID == ID);
         ct.DS_Purchase.DeleteOnSubmit(st);
         ct.SubmitChanges();
     }
 }