I have a web site similar to wizard from 4 steps . The site is implemented by asp.net web forms. The wizard try to build and object and add it to the DB. The object graph is following :
class A { B bObject ; C cObject ; D dObject}
class B {} ; class C{}; class D{};
the objects b,c,d are fetched from the database during the wizard step and filled into A. As you know , b,c,d fetched from the DB by different contexts. When I come to the final step to save A to the DB , the context recognize b,c,d as new objects and not just unmodified so only link them because they come from different contexts.
Any suggestion to make a clean way solving this issue ?
The different contexts caused because of the post packs.