protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public virtual void Dispose(bool disposing) { if (!_isDisposed) { if (disposing) { _db.Dispose(); } } _isDisposed = true; }
protected virtual void Dispose(bool flag) { if (_isDisposed) { return; } _context.Dispose(); _isDisposed = true; if (flag) { GC.SuppressFinalize(this); } }