RIA Service - Update during Insert
===

Problem: during Insert-operation of entity_A I want to update a property on a specific entity_B and update the changes. I do this as follows:

    public void InsertEntity_A(Entity_A entity_A)
    {
        // fetch entity_B and change a property
        Entity_B entity_B = ObjectContext.Entity_B.SingleOrDefault(...);
        entity_B.Counter++;
        this.UpdateEntity_B(entity_B);
        
        // continue normal processing for entity_A
        if((entity_A.EntityState != ...) 
        ...
        ...
    }

"UpdateEntity_B(...)" generates an error saying that entity_B is not in the current ChangeSet. How can I achieve this??

TIA
Heiko