protected override void Dispose(bool disposing) { if (disposing) // Releases all resources that are used by the current instance of the Controller class. { db.Dispose(); } base.Dispose(disposing); }
public void Dispose() { if (_db != null) { _log.Debug("Release resources"); _db.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { ToDoListDbContext.Dispose(); } base.Dispose(disposing); return; }
public void Dispose() { _context?.Dispose(); GC.SuppressFinalize(this); }