I have a set of entities
Continent
Country
City
with obvious relationships of 1:m
I need all the Continents where they have a City.Name = "London"
How would I set up a Predicate for that?
I tried this:
IPredicateExpression select = new PredicateExpression();
select.AddWithOr(CityFields.Name == "London");
IRelationCollection relations = new RelationCollection();
relations.Add(ContinentEntity.Relations.CountryUsingContinent_Id);
relations.Add(CountryEntity.Relations.CityEntityUsingCountry_Id);
Is this the optimal way to do it?
Ian