This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, when I have eager load enabled for both collection and backreference I'm getting his strange behavior: MyEntity child = uow.FindById<MyEntity >(Id); int ChildrenCount = child.Parent.Children.Count; I get the result of 0 for ChildrenCount. Which is clearly not possible because if there were no chidlren I won't be able to get to the parent to begin with. But the problem seems to be resolved if I have backrefecnce/collect eager load set to false. Even if I explicitly get the parent entity by searching by id it sill comes up with zero items in it's collection, I'm guessing because the entity has already been loaded in memory with erroneous data. Any ideas how to work around this? I'm on LS3. Thanks. |
|