views:

16

answers:

1

I fetched an entity using a context.Then I made some changes to the entity and now I'd like to save the entity using a diferent context. I use the AttachTo method but i'm getting this error.

An entity object cannot be referenced by multiple instances of IEntityChangeTracker.

A: 

You must Detach before you can AttachTo.

That said, your life will be much simpler if you use only one context.

Craig Stuntz