protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _db.Dispose(); } } _disposed = true; }