History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NH-1394
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Tuna Toksoz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
NHibernate

Ability to use "order by projection"

Created: 19/Jul/08 11:53 AM   Updated: 24/Jul/08 11:12 PM
Component/s: Core
Affects Version/s: 2.0.0.Beta2
Fix Version/s: 2.1.0.Alpha1

File Attachments: 1. Text File nh1394.patch (11 kb)
2. Text File nh1394_final.patch (11 kb)



 Description  « Hide
It would be good if we could order by a projection such as
order by e.UnitPrice*e.Quantity

This is trivial, the only thing necessary is a constructor added to Order class and return SqlString accordingly.

A patch is in progress for that.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Tuna Toksoz - 19/Jul/08 04:17 PM
This solves the projection in order by issue. One can use subquery projection in orderby clause.

Tuna Toksoz - 20/Jul/08 12:56 AM
The patch is invalid. Please wait and I'll send one more(nh1394.patch)

Tuna Toksoz - 21/Jul/08 01:26 PM
This bug fixes the issue that the previous one has