Hi, I am trying to specify a sort order for a collection of child entities, based on the 'sort' field in the child entity. mapping.WithTable("ContentPages"); mapping.HasMany<ContentSubPage>(x => x.SubPages) .WithKeyColumn("ParentContentPageId") .Inverse() .Cascade.AllDeleteOrphan() .AsBag() .SetAttribute("order-by", "sort");
I tried the above, adding the 'order-by' attribute to the mapping but it is not producing an 'order by' in the SQL. Any pointers? Thanks, Alan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---