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

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -