Good Afternoon,
I was wondering what the best way is to fetch an entity from an entitycollection if the primary key value is known. There must be an easier way then:
FlightEntity myFlight;
IPredicate flightFilter = (FlightFields.Id == flightPrimaryKey);
List<int> result = flightCollection.FindMatches(flightFilter);
if (result.Count == 1)
{
myFlight = flightCollection[result[0]];
}
Thanks,
Mike