| Beginner |
 |
Joined: Mon Jul 30, 2007 4:58 pm Posts: 21
|
|
Hello I am using NH 1.2.1 and AFAIK implicit joins via expressions is allowed on NH 1.2.0+
such as :
session.CreateCriteria(typeof(User))
.Add( Expression.Eq("Address.City", "Bangkok") );
As long as the relation between User and Address is many-to-one or one-to-one.
So my problem only occurs if User class inherits another class such as a typical BaseObject.
In that case it cannot resolve Address then I am falling back to CreateAlias type of join.
It smells like an NHibernate bug to me? Can anyone confirm ?
|
|