internal void CloseTransaction() { if (currentTransaction == this.transaction) currentTransaction = null; this.transaction = null; }
public Transaction OpenTransaction() { this.transaction = new Transaction(this); if (currentTransaction == null) currentTransaction = this.transaction; else throw new InvalidOperationException("There is an Existing Transaction"); return this.transaction; }