Hi
I'm still pretty new to LLBLGen and am trying to understand how to programmatically replace the following select statement with the generated code (I'm fine with regular selects - it is the grouping and aggregation function I'm having trouble with):
select gf.[FileName], gf.[File], gf.[FileVersion]
from tb_GameFile gf
inner join (select [FileName], max(FileVersion) as [Version]
from tb_GameFile group by [FileName]) it on it.[FileName] = gf.[FileName] and it.[Version] = gf.[FileVersion]
Basically I start out with a list of files that I want to retrieve from the DB (of which there will be duplicates in the DB at different versions). I'm just trying to get the latest version of each file into a collection.
Could someone give me some sample code for performing this?