This project is read-only.

DefaultODataBatchHandler change sets

Topics: ASP.NET Web API
Jul 3, 2014 at 4:45 PM
Edited Jul 3, 2014 at 6:00 PM
I'm using DefaultODataBatchHandler in order to be able to accept a number of OData requests at once, but want to handle these as a single all-or-nothing operation (i.e. a single transaction).

My understanding is that this is what change sets are for. However, if I submit a request using a change set with two requests - the first that'll succeed, and a second that'll fail - then it doesn't seem to do so. The first request successfully alters the data, the second fails, but the first request still take effect.

Is this kind of atomic batch operation not supported at the moment?

EDIT: I'm using the latest version btw - Web API 2.2 w/ OData 4 support
Aug 18, 2014 at 1:21 AM
I'll second this as a MAJOR issue...