"
ASP.NET (snapshot 2017) Microsoft documentation and samplesThis sample illustrates use of Razor Pages custom route and page model providers. This sample demonstrates the features described in the Razor Pages route and app convention features topic.
Features | Sample demo |
---|---|
Add route and app model conventions | Add a route attribute and header to the app’s pages. |
Use AddPageRoute to add a page route | Adds the specified route to the page at the specified page. |
Page model action conventions | Add a header to pages in a folder, add a header to a single page, and configure a filter factory to add a header to the app’s pages. |
Replace the default page app model provider | Change the conventions for handler naming. |