protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { this.UnitOfWork.Dispose(); UtilityTools.Dispose(); } disposedValue = true; } }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { UtilityTools.Dispose(); if (this.DbContextTransaction != null) { this.DbContextTransaction.Dispose(); this.DbContextTransaction = null; } this.DbContext.Dispose(); this.DbContext = null; } disposedValue = true; } }