protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (!_disposed && disposing) { _dbContextTransaction?.Dispose(); _context.Dispose(); } _disposed = true; }
protected override void Dispose(bool disposing) { // Logger.Log(LogLevel.Debug, "Starting ImmunizationsController Dispose.", "", "", ""); if (disposing) { db.Dispose(); } base.Dispose(disposing); // Logger.Log(LogLevel.Debug, "Ending ImmunizationsController Dispose.", "", "", ""); }
protected override void Dispose(bool disposing) { //Logger.Log(LogLevel.Debug, "Starting Patient CommunicationController Dispose.", "", "", ""); if (disposing) { db.Dispose(); } base.Dispose(disposing); // Logger.Log(LogLevel.Debug, "Completed Patient CommunicationController Dispose.", "", "", ""); }
protected override void Dispose(bool disposing) { // Logger.Log(LogLevel.Debug, "Starting DocumentsController Dispose.", "", "", ""); if (disposing) { db.Dispose(); } // Logger.Log(LogLevel.Debug, "Ending DocumentsController Dispose.", "", "", ""); base.Dispose(disposing); }
public void DisposeTest() { _patientService = null; _unitOfWork = null; _patientRepository = null; if (_dbpatientContext != null) { _dbpatientContext.Dispose(); } _patients = null; }
public void Dispose() { Context.Dispose(); GC.SuppressFinalize(this); }
public void Dispose() { _context.Dispose(); }