/// <summary> /// Dispose current context, transaction scope, set is_in_transaction flag to false /// </summary> public void Dispose() { if (_currentContext != null) { _currentContext.Dispose(); } _currentContext = null; if (_transactionScope != null) { _transactionScope.Dispose(); } _transactionScope = null; IsInTransaction = false; //CustomerIdentifier = null; //UserName = null; //Password = null; //ApiVersion = null; //ConnectionString = null; }
public void Dispose() { _service.Dispose(); GC.SuppressFinalize(this); }