Reputation: 65
Is there a way to use OData in a Asp.Net Core Razor Pages? I have found many implementation examples for .Net Core MVC or API projects, but i cant find any examples for Razor Pages.
Upvotes: 1
Views: 356
Reputation: 19598
Based on the OData documentation - OData (Open Data Protocol) is an ISO/IEC approved, OASIS standard that defines a set of best practices for building and consuming REST APIs. It enables the creation of REST-based services which allow resources identified using Uniform Resource Locators (URLs) and defined in a data model, to be published and edited by Web clients using simple HTTP messages. Razor pages are not suitable for REST API development. ASP.NET Core WEB API or MVC is a better choice for building RESTful applications.
Upvotes: 4