I was following this sample to create Odata end-point
In this it says:
Note that an endpoint can have multiple entity sets. Call EntitySet for each entity set, and then define a corresponding controller.
Now, I cant have a controller for every single entity set and I want to give OData support.
If I want to have multiple entity sets in a single controller how do I go about doing it?
Regards.
This might be a decent sample to give you some ideas. It creates Dynamic OData Routes
https://aspnet.codeplex.com/SourceControl/latest#Samples/WebApi/OData/v4/DynamicEdmModelCreation/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With