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
|
Lightspeed 5.0 I cannot find anywhere in your documentation how to turn off persistence of collections. We have an entity that has many relationships and a collection of these entities is persisted at the application layer. We are having an issue with it attempting to save its sub entities any time a change is made to it and is even preventing some sub entities from saving because it is triggering an invalid save of other sub entities. We need to just shut off collection relational saving for this entity. |
|
|
Hi, We don't provide a mechanism for this - we expect that when a SaveChanges call is made, the attached entities are in a valid state. If you need to work around this scenario, I would advise loading the entity into a unit of work, ensuring the child items are not loaded in the collection through eager loading, make the changes and call SaveChanges. How you'd manage the stale object on the other unit of work would be an issue you'd need to resolve. I hope that helps, John-Daniel Trask |
|