Wednesday, October 27, 2010

How to do "TOP N" in nhibernate's query language

How to do "TOP N" in nhibernate's query language...

Seems like you can't - so instead you have to use:
- SetMaxResults(N)
on the IQuery object.

With help from:
http://stackoverflow.com/questions/555045/nhibernate-hqls-equivalent-to-t-sqls-top-keyword

No comments:

Post a Comment