开发者

nHibernate order by N with SQL Server

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜