NHibernate: Many-to-one IUserType
问题 Following on from this question: NHibernate: Lazy loading of IUserType Seeing as I can't lazy load a property or a one-to-one relationship, is there a way I can use an IUserType with a many-to-one? Something like this (which doesn't work): <many-to-one name="Client" column="`ClientId`" lazy="true" type="EmployeeSystem.UserTypes.ClientUserType, EmployeeSystem" /> 回答1: Looks like NHibernate does not support custom loading ( IUserType ) for associations (many-to-one, one-to-one etc). As a side