Search⌘ K
AI Features

Setting Up and Creating an ASP.NET Core MVC Website

Explore how to build an ASP.NET Core MVC website by applying the Model-View-Controller pattern to organize code and manage complexity. Learn to create projects with authentication using Visual Studio or command line tools, configure databases for user accounts, and understand the roles of models, views, and controllers to deliver scalable web applications.

Set up an ASP.NET Core MVC website

ASP.NET Core Razor Pages are great for simple websites. For more complex websites, it would be better to have a more formal structure to manage that complexity. This is where the Model-View-Controller (MVC) design pattern is useful. It uses technologies like Razor Pages but allows a cleaner separation between technical concerns, as shown in the following list:

  • Models: Classes that represent the data entities and view models used on the website. ...