Understanding the connection between ASP.NET Core MVC and design principles
The whole ASP.NET Core framework is built on top of the design principles and patterns that we analyzed in Chapter 5, Applying a Microservice Architecture to Your Enterprise Application, Chapter 8, Interacting with Data in C# – Entity Framework Core, Chapter 11, Design Patterns and .NET 5 Implementation, Chapter 12, Understanding the Different Domains in Software Solutions, and Chapter 13, Implementing Code Reusability in C# 9.
Moreover, all framework functionalities are provided through DI so that each of them can be replaced by a customized counterpart without it affecting the remainder of the code. However, these providers are not added individually to the DI engine; instead, they are grouped into option objects (see the Loading configuration data and using it with the options framework subsection) in order to conform to the SOLID Single Responsibility Principle. This is the case, for instance...