So it is perfectly working you mean ???

Here is your version :
<bag name="Tags" (...) order-by="Name">

</bag>

then you

 .SetFetchMode("Tags", FetchMode.Eager)

So you request to load the tags ordered by name, and when issuing the query, nh
is sorting using your criteria ("Sort") and using the bag ordering criteria
("Name")

The SQL issued by NH is 100% compliant to your request.

Fred.



Selon Mohamed Meligy <[email protected]>:

> Just letting you know about
>
http://www.primordialcode.com/blog/post/nhibernate-eager-fetch-order-strange-behavior-icriteria
>
> --
> *Mohamed Meligy*
> Senior Developer, Microsoft Technologies - Technical Delivery Group
> Injazat Data Systems
> P.O. Box: 8230, Abu Dhabi, U.A.E. (*GMT+4*)**
>
> Direct:     +971   2 4045385
> Mobile:    +971 50 2623624, +971 55 2017 621
> Email:     [email protected]
> Weblog:  *http://gurustop.net*
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>


-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to