protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { //Free any other managed objects here } Db.Dispose(); _disposed = true; }
public void Dispose() { CleanDatabase(); _db.Dispose(); }