Hello All.
first the basics:
LLBLGen Pro v2.6
VS 2005
XP Pro SP3
SQL Server 7
I am having trouble getting my head around how to do this. let me try to explain. i have a small application that allows users to select a myriad of criteria cominations to create a resultset (either a collection or datatable).
now i am working on the reporting end of the app. all the criteria and searching works perfectly. i can get a full graph in a collection.
what i need is the ability to transform the results of their query into a full hierarchical graph DataSet. The reason this is needed is that i am trying to allow them to build their own reports with a report builder (DevExpress XtraReports to be precise). The problem is that whoever created the data base named all the fields in hungarian notation so this is very cryptic for the users. i need to do this projection using aliases so i can give them field names that make sense to their meager minds.
let me give a very watered down version of what i need. There are many more tables/fields involved, but this will give the idea.
Tables:
Contacts:
lContactID - PK
szFirstName
szLastName
sGender
Roles:
lRoleID - FK
lContactID - FK
RolesList:
lRoleID -PK
szRoleName
What i want to return to the report designer is a DataSet of these tables with aliases like this:
Tables:
Contacts:
Contact ID- PK
First Name
Last Name
Gender
Roles:
Role ID- FK
Contact ID- FK
RolesList:
Role ID-PK
Role Name
Now bear in mind i already have all the logic in place to build the predicates and relations and prefetch paths. i just need a way to transform the results into a related DataSet.
I think this is possible using projections but for the life of me i cannot seem to wrap my mind around how this can be done.
Thanks in advance for all your help.
-Micah