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 built my business logic in a way that i use short lived UOW objects where I get an entity and its associated entities and alter them then push back the changes. I reattach the parent entity once I create a new UOW object to save the changes. On the GUI, creating new and modifying associated entities work. However, when I try to delete an associated entity, the LS framework tries to access the UOW where it has been disposed and this generates an exception.
So, I would like to know how we can do all types of CRUD on an existing entity and its associated entities while disconnected and then reattach it and save all the changes all together.
Thanks |
|
|
Hi, Just to repeat what you're meaning to ensure I'm on the right track, you're stating that you would like to be able to add/remove/edit entities while they are not attached to a UnitOfWork? Are you in a distributed environment where a unit of work is not available? Generally speaking, a unit of work is for managing the state and working with entities and therefore by using that pattern they should be associated with a unit of work for you to be able to manipulate them. I'm just trying to ascertain why the unit of work is not available to you to make these changes at the time. We appreciate your feedback, with a bit more information we can look at how we can improve this situation. Kind regards, John-Daniel Trask |
|