How to perform insert and update with Ado.net dataservices (EF and Inheritance)
Posted
by Thurein
on Stack Overflow
See other posts from Stack Overflow
or by Thurein
Published on 2010-05-22T15:19:59Z
Indexed on
2010/05/24
6:41 UTC
Read the original article
Hit count: 574
wcf-data-services
|ado-net-dataservices
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.
© Stack Overflow or respective owner