I have a problem that when creating an alias the sql also returns the
columns of the alias table.
For example
session.CreateCriteria(typeof (A), "a").CreateAlias("B", "b",
JoinType.InnerJoin).List();
is fetching all column for both A and B.
In HQL you can write like this
select a from A a inner join a.B b
Can you do something similar with criteria?
There was an earlier discussion about this in this thread, but with no
solution
http://groups.google.com/group/nhusers/browse_thread/thread/cc6c61bc70579096/da7326f7082fefd3?lnk=gst&q=left+join+is+erroneously#da7326f7082fefd3
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---