Does any one know the difference, if any, of the following statements?
_context.AddObject(user);
_context.Users.AddObject(user);
as well as
_context.Attach(user);
_context.Users.Attach(user);
Thanks
EDIT
Sorry some confusion:
I know the difference between AddObject and Attach, what I meant was is there any difference in the way you use AddObject i.e.
_context.AddObject(user);
_context.Users.AddObject(user);
An ObjectContext can have multiple sets with the same schema, so it’s normally better to use the explicit set. ie
_context.Users.AddObject(user);From MSDN: