In which method of the Startup.cs file is routing typically configured in an ASP.NET Core MVC application?
- ConfigureServices
- ConfigureAuthentication
- ConfigureRoutes
- Configure
Routing in an ASP.NET Core MVC application is typically configured in the Configure method of the Startup.cs file. This method sets up the request processing pipeline, including routing rules for different URL patterns.
Loading...
Related Quiz
- If you were looking to define custom scripts that should run during build or post-build events, where would you specify this in the project.json file?
- When defining a one-to-many relationship in Entity Framework Core, which Fluent API method is commonly used to represent the "many" side?
- Configuration data in ASP.NET Core can come from various sources like environment variables, command-line arguments, and __________.
- Imagine you're working on an e-commerce application using ASP.NET Core MVC. A user wants to view details of a product. Which component of the MVC pattern would be responsible for fetching the product details from the database?
- What is the primary purpose of a Web API in ASP.NET Core?