Adding object to child collection causes entire collection to load in Fluent NHibernate.
Posted
by Mike C.
on Stack Overflow
See other posts from Stack Overflow
or by Mike C.
Published on 2010-05-11T21:52:12Z
Indexed on
2010/05/11
21:54 UTC
Read the original article
Hit count: 154
fluent-nhibernate
Hello, I have my Parent object, which contains an ICollection of Children objects. The Children are lazy loaded and I do not need them in the context of my scenario. However, when I try to add a new child object to my Children collection, it kicks off the lazy load and loads all 7000 child records.
I assume I am making a newbie mistake. Anybody out there know how I can fix this?
Thanks!
© Stack Overflow or respective owner