Does anyone know the difference, if any, of the following statements?
_context.AddObject(user);
_context.Users.AddObject(user);
and
_context.Attach(user);
_context.Users.Attach(user);
thank
EDIT
Sorry, some kind of confusion:
I know the difference between AddObject and Attach, I mean, is there any difference in the way you use AddObject ie
_context.AddObject(user);
_context.Users.AddObject(user);
source
share