Updating/Inserting multiple rows using jQuery and OData (WCF Data Services)
Posted
by Pieter
on Stack Overflow
See other posts from Stack Overflow
or by Pieter
Published on 2010-05-16T14:25:25Z
Indexed on
2010/05/16
14:30 UTC
Read the original article
Hit count: 268
I have three tables, Template, Fields and TemplateFields. TemplateFields holds the selected fields for each template. I need to update TemplateFields when the user is finished selecting the fields. The only way I can see to do this is by deleting all the TemplateFields for that Template and then add them one by one in separate requests. This is really bad because there is not transaction to fall back onto and there will also be MANY requests.
Is there a way of adding multiple 'objects' at once using WCF Data Services? I can then use an Interceptor to update the database.
© Stack Overflow or respective owner