Hi.

I use the fallowing Linq which works in NHibernate 2.1:

 (from elements in Session.Query<ActivityDocumentTemplate>() select
elements).OrderBy(dt => (dt.Name.StartsWith(".") ? "1" : dt.Name))

This is not working with NH 3.0. I get the fallowing Exception:

Eine Ausnahme vom Typ "Antlr.Runtime.MismatchedTreeNodeException"
wurde ausgelöst.
[.Where(.OrderBy(.Select(NHibernate.Linq.NhQueryable`1[Prayon.Entities.ActivityDocumentTemplate],
Quote((elements, ) => (elements)), ), Quote((dt, ) =>
(dt.Name.StartsWith(p1, ) ? p2 : dt.Name)), )]

Can someone help me, how to solve this? - Thank you.

Best Regards, Thomas

-- 
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