public override int GetHashCode() { var id = _repo._internal_repo.Resolve(Name); if (id != null) return id.GetHashCode(); return base.GetHashCode(); }