protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { db.Dispose(); } this.disposed = true; } }
/// <summary> /// Cleaning unmanaged recourses /// </summary> /// <param name="disposing"></param> public virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { _db.Dispose(); } _disposed = true; }