sql server - nHibernate only returns an empty row set -


i profile sql server , don't see attempt hit server hibernate.
also no errors thrown.
the thing happens hibernate returns empty row set.

the query:

    var cfg = new configuration();     cfg.configure();     isessionfactory sesfactory = cfg.buildsessionfactory();     var ses = sesfactory.opensession();     var qry = ses.createquery("from tko.smartmoves.modules.operations.domain.vdoors");     ilist<vdoors> x = qry.list<vdoors>(); 

if set same thing using icriteria have same problem.


works ~ other things being equal:

    string sql = string.format("select * vdoors");     var cfg = new configuration();     cfg.configure();     isessionfactory sesfactory = cfg.buildsessionfactory();     var ses = sesfactory.opensession();     var qry = ses.createsqlquery(sql);     ilist<vdoors> x = qry.list<vdoors>(); 

thanks.

on testing (because of posted prompted oskar berggren, thank oskar) recognized vdoors.hbm.xml file named vdoors.xml (without .hbm.) move suggest nhibernate crew release version throws error under circumstance nhibernate can't find necessary mapping resource @ run-time.

thanks again oskar @oskarberggren


Comments