I solved the InvalidPathException problem here: https://stackoverflow.com/questions/65288396/how-do-i-get-nhibernate-to-generate-sql-for-a-computed-property/65302675#65302675
On Monday, December 14, 2020 at 10:21:20 AM UTC+2 Michael Berkowitz wrote: > 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/24bca9d2-404a-4bf5-a837-a14bf12b6025n%40googlegroups.com.
