how is it possible to add EntityObject instance into ObjectContext? I do not want to use specialized functions for adding specific entities. How can one do that?
I want to have one function for adding any entity to the context.
Thank you in advance.
James
You can also use
ObjectContext.CreateObjectSet<YourEntityType>().AddObject(yourEntity). There is no single method which will take any entity type’s instance without any other information and add it to the context.