0

Turning the JSON result into camelCase is easy when using ODataConventionModelBuilder.

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

But how is it done when using ODataModelBuilder? I can't seem to find anything on the topic.

I suspect it has to be done per Property, a bit like this builder...Property(x => x.Foo)... but can't find any relevant method.

Snæbjørn
  • 10,322
  • 14
  • 65
  • 124
  • Why would you want to use `ODataModelBuilder`? The `ODataConventionModelBuilder` derives from it. – Yi Ding - MSFT Mar 13 '15 at 01:55
  • Because I'm only exposing a subset of my domain model and I'd have to write a lot of code to make it build using ODataConventionModelBuilder – Snæbjørn Mar 13 '15 at 11:02

0 Answers0