This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I was wondering how I can tell LightSpeed to map the [Role].[Name] column on the RoleName property, and [Committee].[Name] column onto the ComitteeName property during Project Trying to avoid using the IDataReader version.
Cheers Andy |
|
|
Unfortunately you cant since we are just performing a reflection based load against the IDataReader based overload when using Project against a known type so you will have to write something yourself to perform the mapping Im afraid. You have probably noticed that this does work happily though if you use a LINQ based projection as we have a more sophisticated projection mapper in the LINQ side of the world so not sure if you can look at using that type of approach here instead?
|
|
|
Unfortunately I can't use LINQ in this situation as the query is built from a DSL. Turns out, building a custom mapper wasn't that bad as the DSL knows what columns are being selected, in what order and where they appear on the result object. |
|