Exemplo n.º 1
0
 public ProfiledDbTransaction(DbTransaction transaction, ProfiledConnection connection)
 {
     if (transaction == null) throw new ArgumentNullException("transaction");
     if (connection == null) throw new ArgumentNullException("connection");
     this._trans = transaction;
     this._conn = connection;
 }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         trans?.Dispose();
     }
     trans = null;
     db    = null;
     base.Dispose(disposing);
 }
Exemplo n.º 3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         trans?.Dispose();
     }
     trans = null;
     db = null;
     base.Dispose(disposing);
 }
Exemplo n.º 4
0
        public ProfiledDbTransaction(DbTransaction transaction, ProfiledConnection connection)
        {
            if (transaction == null)
                throw new ArgumentNullException(nameof(transaction));
            if (connection == null)
                throw new ArgumentNullException(nameof(connection));

            this.trans = transaction;
            this.db = connection;
        }
Exemplo n.º 5
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && _trans != null)
     {
         _trans.Dispose();
     }
     _trans = null;
     _conn  = null;
     base.Dispose(disposing);
 }
Exemplo n.º 6
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && _trans != null)
     {
         _trans.Dispose();
     }
     _trans = null;
     _conn = null;
     base.Dispose(disposing);
 }
Exemplo n.º 7
0
 public ProfiledDbTransaction(DbTransaction transaction, ProfiledConnection connection)
 {
     if (transaction == null)
     {
         throw new ArgumentNullException("transaction");
     }
     if (connection == null)
     {
         throw new ArgumentNullException("connection");
     }
     this._trans = transaction;
     this._conn  = connection;
 }
Exemplo n.º 8
0
        public ProfiledDbTransaction(DbTransaction transaction, ProfiledConnection connection)
        {
            if (transaction == null)
            {
                throw new ArgumentNullException(nameof(transaction));
            }
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }

            this.trans = transaction;
            this.db    = connection;
        }