public DeveelDbEnlistment(DeveelDbConnection connection, Transaction scope) { transaction = connection.BeginTransaction(); Scope = scope; Scope.EnlistVolatile(this, EnlistmentOptions.None); }
protected void Rollback() { if (transaction != null) { transaction.Rollback(); transaction = null; } }
protected void Commit() { if (transaction != null) { transaction.Commit(); transaction = null; } }
protected void BeginTransaction() { if (transaction == null) { transaction = Connection.BeginTransaction(); } }
private void Dispose(DeveelDbConnection connection) { connection.Dispose(); transaction = null; Scope = null; }