The nHibernate crew includes you. A bug report and a failing unit test would be most welcome.
https://github.com/nhibernate/nhibernate-core/blob/master/CONTRIBUTING.md 2016-09-03 22:48 GMT+02:00 Steve Lyle <[email protected]>: > On testing (because of what I posted that was prompted by Oskar Berggren, > thank you Oskar) I recognized my vDoors.hbm.xml file was actually named > vDoors.xml (without the .hbm.) I move to suggest the nHibernate crew > immediately release a version that throws an error under the circumstance > where nHibernate can't find the necessary mapping resource at run-time. > > Thanks again Oskar @OskarBerggren > > > > > > On Thursday, September 1, 2016 at 2:41:43 PM UTC-4, Steve Lyle wrote: > >> I profile the SQL server and don't see any attempt to hit the server from >> Hibernate. >> Also no errors thrown. >> The only thing that happens is Hibernate returns an 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.Operati >> ons.Domain.vDoors"); >> IList<vDoors> x = qry.List<vDoors>(); >> If I set the same thing up using ICriteria I have the same problem. >> >> >> But this works ~ all other things being equal: >> string sql = string.Format("select * from 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. >> >> -- > 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 https://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/d/optout. > -- 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 https://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
