Using:
Adapter template.
LLBLGen Pro Version 2.6 Final (October 9th, 2009)
.Net 3.5
Here are my tables:
Parcel
PropertyDescription
Tract
Plat
BlockLot
Here are the relationships between those tables:
Parcel has many PropertyDescriptions.
PropertyDescription.ParcelId is foreign key to Parcel.ParcelId
PropertyDescription has one Tract
PropertyDescription.TractId is foreign key to Tract.TractId
PropertyDescription has one Plat
PropertyDescription.PlatId is foreign key to Plat.PlatId
Tract has many BlockLots
BlockLot.TractID is foreign key to Tract.TractID
Objective
I'd like to get all the PropertyDescriptions for a Parcel.
I'd like to prefetch Tract, Plat, and BlockLot data.
But I'd like to be able to sort the resulting collection using fields from those prefetched tables.
For example, I might want to sort the PropertyDescription collection by:
Plat.Code, BlockLot.Block, Tract.Section, Tract.Township, Tract.Range
In the past, I'd do this by creating my own typed list in code that had the joins and the sorting. But I'm wondering if LLBLGen has a simpler way.