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:-

enter image description here


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -