Hey all,
Firstly, I am using:
LLBLGen Pro Version 2.6 Final ( June 6th, 2008 ) - Evaluation Copy
I can itterate through my entity collections, no problem at all... however I have no clue how I can itterate through another entity collection, based on a value returned from an entity inside another collected. That probably is hard to understand, let me try demonstrate...
Here is my current code:
EntityCollection<VmmDriverHistoryEntity> drivers = new EntityCollection<VmmDriverHistoryEntity>(new VmmDriverHistoryEntityFactory());
adapter.FetchEntityCollection(drivers, null);
foreach (VmmDriverHistoryEntity driver in drivers)
{
// do something
}
Here is pseudo code for what I want to try do:
EntityCollection<VmmDriverHistoryEntity> drivers = new EntityCollection<VmmDriverHistoryEntity>(new VmmDriverHistoryEntityFactory());
adapter.FetchEntityCollection(drivers, null);
foreach (VmmDriverHistoryEntity driver in drivers)
{
EntityCollection<VmmVehicleEntity> vehicles = new EntityCollection<VmmVehicleEntity>(new VmmVehicleEntityFactory());
adapter.FetchEntityCollection(vehicles, null).Where(driver.VehicleID == vehicles.VehicleID);
foreach (VmmVehicleEntity vehicle in vehicles)
{
// do something
}
}
I hope it was clear what I am trying to do... if you need me to try better explain myself, please just ask. I've had a look around the documentation, but couldn't find exactly what I'm after.
Regards,
Justin