c# - CreateSQLQuery works but QueryOver doesn't with NHibernate -
so i'm trying execute basic select query table return rows. right have object representing data in table , mapped in hbm.xml file. far know, mapping correct (it's simple table auto-incrementing key , string value).
when do:
session.createsqlquery("select * db.table").list()
for example, resulting query works.
however, if do:
session.queryover<myobject>().list()
the result null.
usually when happens because xml file not marked embedded resource in project.
see here:-
Comments
Post a Comment