Hi Justin, here it is:
LLBLGenPro wrote:
Adapter contains a general purpose EntityCollection class. This is different from SelfServicing where, per entity definition in a project, LLBLGen Pro will generate an entity collection class. The EntityCollection class is located in the HelperClasses namespace in the database generic project. This class is used to work on more than one entity at the same time and it is used to retrieve more than one entity of the same type from the database. This section describes the different kinds of functionality bundled in the EntityCollection class, related to collection class and how to utilize that functionality in your code.
So, if you are using .NET 1.x:
EntityCollection vehicles = new EntityCollection(new VmmVehicleEntityFactory());
DataAccessAdapter adapter = new DataAccessAdapter();
adapter.FetchEntityCollection(vehicles, null);
foreach(VmmVehicleEntity v in vehicles)
{
// so something with v
}
And, if you are on .NET 2.0:
EntityCollection<VmmVehicleEntity > customers =
new EntityCollection<VmmVehicleEntity >(new VmmVehicleEntityFactory());
DataAccessAdapter adapter = new DataAccessAdapter();
adapter.FetchEntityCollection(vehicles, null);
foreach(VmmVehicleEntity v in vehicles)
{
// so something with v
}
Don't forget to include the _YourProject.HelperClasses _namespace at _using _section.
Cheers.