protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { context.Dispose(); } } this.disposed = true; }
protected override void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _booksDbContext.Dispose(); } _disposed = true; } base.Dispose(disposing); }
protected virtual void Dispose(bool Disposing) { if (Disposing) { if (_context != null) { _context.Dispose(); _context = null; } if (_cancellationTokenSource != null) { _cancellationTokenSource.Dispose(); _cancellationTokenSource = null; } } }
protected override void Dispose(bool disposing) { context.Dispose(); base.Dispose(disposing); }