What is dependency injection in ASP.NET Core?
Dependency injection (DI) is a design technique in which a class receives the objects it depends on instead of creating those objects itself. ASP.NET Core includes a built-in dependency injection container.