I've got stuck while updating data in my db, so maybe you can help me.
I have a DataContext with 3 EntitySets based on this dependency flow ( A -> B -> C ).
When my program executes, 4 entities are created ( one for entity set A, two for entity set B and one for entity set C).
I add these newly created entities using : context_name.Entity_set_name.Add(Entity_name). For example :
context.A.Add(AEntity);
context.B.Add(BEntity1);
context.B.Add(BEntity2); // gives error
context.C.Add(CEntity);
The program gives "The specified entity is already contained in an EntitySet" while executing the BEntity2 add. Note that the two entities (BEntity1 and BEntity2) do not contain the same dataset.