FROM: 
https://github.com/nhibernate/nhibernate-core/tree/3.3.x
NHibernate.Test.SQLLoaderTest..

session.CreateSQLQuery("select {category.*} from Category {category}")
                .AddEntity("category", typeof(Category)).List();


PS. There is no such Method, as AddEntity, so I used the only close-one 
SetEntity 

var ss = session.CreateSQLQuery("select {lbl.*} From Label {lbl}")
                    .SetEntity("lbl", typeof(Label));

*Argument Exception:
**Parameter lbl does not exist as a named parameter in [select {lbl.*} From 
Label {lbl}]*

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to