How to perform insert and update with Ado.net dataservices (EF and Inheritance)
- by Thurein
Hi,
I have an entity model, in which I have a table per type inheritance. There are 3 types, first, Contact, which I defined as abstract in my EF model and the rest are Company and person types which are derived from contact type. Is it possible to perform an insert using ado.net dataservice and asp.net ajax library?
I was trying the following client code :
dataContext.insertEntity(person, "Contacts");
I was getting this response from server :
Error processing request stream. Type information must be specified for types that take part in inheritance.
Thanks.