예제 #1
0
 private void ClosedCap()
 {
     if (IsCapOpenedTrans)
     {
         DbTranasaction.Commit();
         DbTranasaction.Dispose();
     }
     if (IsCapOpenedConn)
     {
         DbConnection.Dispose();
     }
 }
예제 #2
0
 public void Dispose()
 {
     DbTranasaction?.Dispose();
     DbConnection?.Dispose();
 }