In NHibernate 2.0 using SQL Server 2008, if I create a query such as:
Session.CreateSQLQuery("SELECT * FROM USER ORDER BY id desc").AddEntity(typeof(User).SetMaxResults(100).SetFirstResult(1).List<User>();
Then the sql statement fails.
--
Robin Nadeau, B.Eng.
Software Developer
I want to use HQL or criteria API, but PHBs insist we stick with native SQL. How difficult would this be to fix in the provider for sql server? Thanks for your response.
I can't quite remember what PHB means, but it's from Dilbert.
I want to use HQL or criteria API, but PHBs insist we stick with native SQL. How difficult would this be to fix in the provider for sql server? Thanks for your response.
On Tue, Mar 3, 2009 at 3:36 PM, Fabio Maulo <fabio...@gmail.com> wrote: