With a SQL Query I can order by
N, where N is a column index. For example
SELECT name, salary FROM employee ORDER BY 2;
How can I do this with nHibernate?
With a SQL Query I can order by
N, where N is a column index. For example
SELECT name, salary FROM 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.