Esempio n. 1
0
 public void themKB(khambenh kb)
 {
     System.Data.Common.DbTransaction my = dt.Connection.BeginTransaction();
     try
     {
         dt.Transaction = my;
         dt.khambenhs.InsertOnSubmit(kb);
         dt.SubmitChanges();
         dt.Transaction.Commit();
     }
     catch (Exception ex)
     {
         dt.Transaction.Rollback();
         throw new Exception("Loi them vao" + ex.Message);
     }
 }
Esempio n. 2
0
 private void detach_khambenhs(khambenh entity)
 {
     this.SendPropertyChanging();
     entity.benhnhan = null;
 }
Esempio n. 3
0
 private void attach_khambenhs(khambenh entity)
 {
     this.SendPropertyChanging();
     entity.benhnhan = this;
 }
Esempio n. 4
0
 partial void Deletekhambenh(khambenh instance);
Esempio n. 5
0
 partial void Updatekhambenh(khambenh instance);
Esempio n. 6
0
 partial void Insertkhambenh(khambenh instance);