If I have a QueryOver like this: var result = Session.QueryOver<Parent>().JoinQueryOver(p => p.Child).SelectList(list => list.SelectGroup(p => p.Child.Property)); I get an error 'could not resolve property: Child.Property of: Parent'.
However, if I rewrite it to look like this: var result = Session.QueryOver<Parent>().JoinQueryOver(p => p.Child, () => childAlias).SelectList(list => list.SelectGroup(childAlias.Property)); It works fine. How would I do this without the alias? (Note: this query is simplified from the original, so I want to do more stuff in the SelectList(), but that's irrelevant for the discussion). Also, I notice that the SelectList method signature only does something with the TRoot type, not with the TSubType type. Is this related somehow? Thanks, Roy -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
