Base solution for your next web application
Open Closed

Is dynamic OData not supported? #6123


User avatar
0
huntethan89 created

Dynamic Web API works great but I was wondering whether dynamic OData is also available or not?

If it is available, please share the link for ASPNET Zero documentation.

I checked ASPNET Boilerplate documentation and it looks like we have to write OData for every entity unlike web api which are generated automatically.

Thanks

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @smartlayer

    ABP helps you to create OData Controllers but they are not dynamic. You can check below documents for details;

    MVC 5.x: https://aspnetboilerplate.com/Pages/Documents/OData-Integration ASP.NET Core: https://aspnetboilerplate.com/Pages/Documents/OData-AspNetCore-Integration

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    huntethan89 created

    Hi @ismcagdas

    I was able to follow that article and successfully implemented it. But it looks like there is no authentication to odata this way. Any idea on how we can add authentication to it?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    aaron created
    Support Team

    What do you mean by no authentication?

    If you mean authorization, see AspNet Core - Authorization Filter:

    • Use the AbpMvcAuthorize attribute on actions or controllers to check the desired permissions before the action execution.
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)