I'm suddenly encountering this problem, whereas I'm *sure* I had this working earlier! Has anyone made progress on it?
On Saturday, January 27, 2018 at 11:39:51 PM UTC+2 [email protected] wrote: > Hi all, > > does anyone have experience implementing this: > https://hendryluk.wordpress.com/2011/09/06/nhibernate-linq-ing-calculated-properties/ > > I cannot get it working. Throws the following exception when the query is > executed: > > NHibernate.Hql.Ast.ANTLR.InvalidPathException: Invalid path ‘x.Weight’ > > One workaround I found was to replace the linq parameter name, so the > following query from the example: > > from parcel in Session.Query<Parcel> where parcel.Fee > 1000 select > parcel; > > would become: > > from x in Session.Query<Parcel> where x.Fee > 1000 select x; > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nhusers/ceae3fcc-2be2-47d1-984f-8219ac4d9123n%40googlegroups.com.
