aspdotnet_core_Areas.md - brainchildservices/curriculum GitHub Wiki

SLIDE-1

AREAS IN ASPDOTNET CORE APPLICATION

SLIDE-2

  • Areas were introduced to Razor Pages in ASP.NET Core 2.1.

  • Areas is another page holding folder where pages can be sectioned into different areas.

  • like:

                  Areas
                      Adminstration
                          Pages
                              Index.cshtml
                              Reports.cshtml
                      Production
                          Pages
                              Index.cshtml
    
  • Routes to resources in areas have the name of the area as the first segment of the URL.

  • The additional routes created for the content in the areas is as follows:

                              "Adminstration"
                              "Administration/Index"
                              "Administration/Reports"
                              "Production"
                              "Production/Index"