Hey,

When trying to create a failing bugtest for NH-2772, i stumbled upon a
TypeLoadException thrown when the organization class has a lazy="true"
property name, if you set it to lazy=false, everything seems to work
perfectly.

See https://github.com/tommarien/nhibernate-core/tree/NH2772 for test
and more info.

The exception basicly boils down to the code in the ProxyFactory :
System.Type proxyType = typeBuilder.CreateType();

But i really do not understand what is going wrong and why this
behavior is triggered only when having a lazy property.

Reply via email to