예제 #1
0
 public void themBN(benhnhan bn)
 {
     System.Data.Common.DbTransaction my = dt.Connection.BeginTransaction();
     try
     {
         dt.Transaction = my;
         dt.benhnhans.InsertOnSubmit(bn);
         dt.SubmitChanges();
         dt.Transaction.Commit();
     }
     catch (Exception ex)
     {
         dt.Transaction.Rollback();
         throw new Exception("Loi them vao" + ex.Message);
     }
 }
예제 #2
0
 partial void Deletebenhnhan(benhnhan instance);
예제 #3
0
 partial void Updatebenhnhan(benhnhan instance);
예제 #4
0
 partial void Insertbenhnhan(benhnhan instance);