NHibernate illegal access to loading collection error
Posted
by Rob
on Stack Overflow
See other posts from Stack Overflow
or by Rob
Published on 2010-03-22T15:19:23Z
Indexed on
2010/03/22
15:21 UTC
Read the original article
Hit count: 493
c#3.5
|nhibernate-mapping
I'm getting the error "Illegal acces to loading collection" when i'm trying to get a list of variants belonging to a certain product. The NHibernate mapping is as below;
<list name="Variants" lazy="false" cascade="save-update" inverse="false" table="PluginProduct_ProductVariant">
<key column="ProductId" />
<index column="Ordinal" />
<one-to-many class="Plugin.Product.Business.Entities.Variant, Plugin.Product" />
</list>
</joined-subclass>
I already tried chancing the laziness and inverse properties as suggested in other topics on this site, but they didn't do the trick.
© Stack Overflow or respective owner