Inheritance: System.Data.Common.DbTransaction
Ejemplo n.º 1
0
        public DeveelDbEnlistment(DeveelDbConnection connection, Transaction scope)
        {
            transaction = connection.BeginTransaction();

            Scope = scope;
            Scope.EnlistVolatile(this, EnlistmentOptions.None);
        }
        public DeveelDbEnlistment(DeveelDbConnection connection, Transaction scope)
        {
            transaction = connection.BeginTransaction();

            Scope = scope;
            Scope.EnlistVolatile(this, EnlistmentOptions.None);
        }
Ejemplo n.º 3
0
 protected void Rollback()
 {
     if (transaction != null) {
         transaction.Rollback();
         transaction = null;
     }
 }
Ejemplo n.º 4
0
 protected void Commit()
 {
     if (transaction != null) {
         transaction.Commit();
         transaction = null;
     }
 }
Ejemplo n.º 5
0
 protected void BeginTransaction()
 {
     if (transaction == null) {
         transaction = Connection.BeginTransaction();
     }
 }
Ejemplo n.º 6
0
 private void Dispose(DeveelDbConnection connection)
 {
     connection.Dispose();
     transaction = null;
     Scope = null;
 }
 private void Dispose(DeveelDbConnection connection)
 {
     connection.Dispose();
     transaction = null;
     Scope       = null;
 }