Reputation: 63
I have written a apicontroller class that supports ODATA by using the EnableQuery attribute on the methods and returning the data asQueryable. It alls works fine for me. What use is the ODataConventionModelBuilder? Do I still need to use it?
Upvotes: 2
Views: 264
Reputation: 3024
The using of ODataConventionModelBuilder
enables
If you really want to expose an OData service that conforms the OData protocol, you would need to do a lot yourselves without the ODataConventionModelBuilder
. But if you don't care about things like conforming model conventions or exposing the service model to the service consumers, you may not use it.
Upvotes: 4