I am trying to load an object using the generated LoadXXXByQuery. But I could not get it to understand my query string.
Example,
Car car = CarFactory.LoadCarByQuery("where car.Owner.ORMID = '1'", null)
Basically I am trying to get a car owned by a specific Owner. But NHibernate keeps throwing exception like so…
could not resolve property:Owner of :Lesen.Car [From Lesen.Car as Car Where Car.Owner.ORMID = '1']
Lesen is the package name for my classes.
Any code sample that explains how to use this function would be good.