How OData routing conventions work
mainOData routing matches your Entity Data Model (Edm Model) to your ASP.NET Core controllers using one of two conventions:
- Convention Routing (Default): Routes are discovered based on naming conventions. For example, an entity set named
Customersexpects a controller namedCustomersController. If you rename the controller (e.g., toMyCustomersController), OData will no longer match theCustomersentity set. - Attribute Routing: Routes are discovered based on attributes applied directly to the controller class or its methods.
By default, the project uses Convention Routing.