On properties inside my domain objects which I do not want lazy loading, I omit the virtual modifier, and also update the mapping file to reflect this using for example:
<property name="UserName" column="Name" type="String" length="40" lazy="false"/>
I would have though that setting the property lazy to false would make it accept that the relevant property inside the domain object not be virtual.
Can anyone explain how I can not make my eager load properties virtual I simply want:
public string UserName{
get{ return _userName; }
set{ _userName = value; }
}
Many Thanks,
Andrew