EF4 ASP.NET - Managing Entity Edits between HTTP Posts and Rollback -
I am struggling with the following usage case: User modifies an existing order The order is complicated - many related 'entities' (addresses, post options, suppliers, creates, models, different items etc.) across multiple HTTP posts. User wants to discard changes. - I have an order unit and as the user is editing it, various changes like unit associations, such as changing order.adression, order.it.ed. (item). .. This is okay in a single post, but in all the posts I do not know the best store state. If I store the entities, then I can not save the changes because they are in various data contexts. I have read that this bad practice is to store data reference in the context of the session i.e. Long-Term References I can not save changes after every edit / post because I can not roll-back (?) I really want to work with entities during the editing process instead of saving a bigger one (UI Taking the settings and applying them in one part). This would be a very com...