i\'m using Entity Framework 4.0 and having a silly problem that i can\'t figure out.
I have two tables:
In my case, I want to duplicate the object, but change the id, so I use this
Common.DataContext.Detach(object);
Work like a charm