Sorry!! no problems here, it works like charm.
criteria.CreateAlias("Component.AnotherClass", "AnotherClass");
and then
Order.Asc("AnotherClass.Name")'doh! On Apr 16, 9:57 am, Nieve <[email protected]> wrote: > Hello all, > I'm having problems with this rather basic issue- trying to order by > MyClass.Component.AnotherClass.Name throws the 'could not resolve > property' exception. > I've tried combinations like > criteria.CreateAlias("Component", "Component"); > criteria.CreateAlias("AnotherClass", "AnotherClass"); > and then > Order.Asc("Name") > > or > criteria.CreateAlias("Component", "Component"); > criteria.CreateAlias("Component.AnotherClass", "AnotherClass"); > > or > criteria.CreateAlias("Component.AnotherClass", "AnotherClass"); > > well, you get my drift... > > Anyone knows what I'm doing wrong here? > > -- > 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 > athttp://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.
