MicrosoftDocs / OData-docs

Creative Commons Attribution 4.0 International
33 stars 113 forks source link

Using $select in Odata request returns JSON attribute formatting is difference from others method #158

Closed matrixgoh closed 3 years ago

matrixgoh commented 3 years ago

interesting enough that the documentation result do show the same behaviour? Is this a bug, no one have concern the result format change just because of using $select

https://github.com/MicrosoftDocs/OData-docs/blob/master/Odata-docs/webapi/first-odata-api.md#select

matrixgoh commented 3 years ago

EnableLowerCamelCase can resovle this issue.

var builder = new ODataConventionModelBuilder() .EnableLowerCamelCase();

https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnet.odata.builder.odataconventionmodelbuilderextensions.enablelowercamelcase?view=odata-aspnetcore-7.0