protected override void Dispose(bool disposing) { _receiveDetailService.Dispose(); _commodityService.Dispose(); _commodityGradeService.Dispose(); _receiveService.Dispose(); _unitService.Dispose(); base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (!this._disposed) { if (disposing) { _commodityService.Dispose(); _rationService.Dispose(); } } this._disposed = true; }