I am searching for a solution for creating an order by clause.
I have a table which has a column for created and one for changed. These two columns contains a DateTime. Changed could be null, if a record was only created and never changed.
Now I should select it with HQL all records ordered by changed desc, if changed is not null, else, if changed is null, by created desc.
I am searching for a solution for creating an order by clause. I have
Share
Example, how to create order by clause in NHibernate: