Hi jacalvar, thanks for your reply.
- the put request is working under normal HTTP PUT request without the batch.
- I am extending EntitySetController.
-
I should add that the EDM I am using (Incident in this example) is constructed manually this way:
ODataModelBuilder builder = new ODataModelBuilder();
EntitySetConfiguration<Incident> incident = builder.EntitySet<Incident>("Incidents");
incident.EntityType.HasKey(c => c.IncidentID);
incident.EntityType.Property(c => c.Name);
incident.HasIdLink(eic =>
{
return eic.GenerateSelfLink(false);
}, false);
-
packages:
<packages>
<package id="Microsoft.AspNet.Mvc" version="5.0.0-beta1-130519" targetFramework="net45" />
<package id="Microsoft.AspNet.Razor" version="3.0.0-beta1-130519" targetFramework="net45" />
<package id="Microsoft.AspNet.Web.Optimization" version="1.0.0" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi" version="5.0.0-beta1-130519" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.0.0-beta1-130519" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.Core" version="5.0.0-beta1-130519" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.OData" version="5.0.0-beta1-130519" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.WebHost" version="5.0.0-beta1-130519" targetFramework="net45" />
<package id="Microsoft.AspNet.WebPages" version="3.0.0-beta1-130519" targetFramework="net45" />
<package id="Microsoft.Data.Edm" version="5.5.0-alpha2" targetFramework="net45" />
<package id="Microsoft.Data.OData" version="5.5.0-alpha2" targetFramework="net45" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
<package id="Microsoft.Web.Optimization" version="1.0.0-beta" targetFramework="net45" />
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net45" />
<package id="PerfIt" version="0.1.2.0" targetFramework="net45" />
<package id="System.Spatial" version="5.5.0-alpha2" targetFramework="net45" />
<package id="TypeScriptBundleTransform" version="1.0.0.8" targetFramework="net45" />
<package id="Unity" version="3.0.1304.0" targetFramework="net45" />
<package id="Unity.WebAPI" version="0.10" targetFramework="net45" />
<package id="WebGrease" version="1.1.0" targetFramework="net45" />
</packages>