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
|
I have a 1-to-n association between a parent object and child objects. See code below. In a method of the parent class, I call methods in the Child class which modify the Child objects. If after that, I loop through the Children, I see the old version of the Child objects (i.e. before the modifications). The problem goes away if I call FindOne<Child>() before I look at the Children. Is there some kind of caching that I can disable in order to avoid this? // in class Parent:private readonly EntityCollection<Child> _children = new EntityCollection<Child>();public EntityCollection<Child> Children{ get { return Get(_children); }} |
|
|
No, something sounds awry there -- once a Child is loaded, whether via the Children entity collection or the FindOne method, LightSpeed should always return the same instance of the entity, respecting any modifications. Could you post a small sample project that reproduces the problem? You can attach a zip file via the Options tab, or email directly to ivan @ the obvious domain name (please remove all binaries first). Thanks! |
|