With a SQL Query I can order by N, where N is a column index. For example
SELECT name, salary FRO开发者_开发知识库M employee ORDER BY 2;
How can I do this with nHibernate?
You can't. NHibernate order by clause requires property names (aliases) and / or expressions to be specified.
加载中,请稍侯......
精彩评论