protected override void Dispose(bool disposing) { if (disposing) { if (_repo != null) { _repo.Dispose(); _repo = null; } } base.Dispose(disposing); }