Updating/Inserting multiple rows using jQuery and OData (WCF Data Services)
- by Pieter
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.