Replace OData default Json serializer with newtonSoft's Json Serializer

389 Views Asked by At

I'm re-writing a project and decided to use .NetCore with AspNetCore.OData (V: 7.4.1). the default Odata serializer makes it hard to both define function and actions on an object (which requires it to be registered as entitySet) and serialize it as a part of a larger-scoped object (which requires it to be registered as complexType). is there a way to override odata's default serilizer with newtonsoft's and that way avoid having to register unnecessary ComplexTypes? I found this question from 4 years ago and figured thing have changed.

0

There are 0 best solutions below