I'm using ASP.NET Boilerplate framework for ASP.NET Core. I have the boilerplate OData controllers as per https://aspnetboilerplate.com/Pages/Documents/OData-AspNetCore-Integration.
I want to support passing of a custom parameter in either the GET method or in a custom OData function. How do I do this in the AbpODataEntityController
?
Regards, David
Looking at the source code, it looks like they are using the standard "Microsoft.AspNet.OData" Version="7.1.0".
So you probably have a place where you set up your
EdmModel
. You should create a function in your controller like this:Then you can just declare a function in your EDM model builder like this:
And call it from Postman like this:
Hope this helps.