Dependency Injection (DI) is a pattern that can help developers decouple the different pieces of their applications. DI provides a mechanism for the construction of dependency graphs independent of the class definitions.
NET Core supports the DI software design pattern, which is a technique for achieving Inversion of Control (IoC, the “D” on the SOLID principles) between classes and their dependencies.
Prior to .NET Core, the only way to get DI in your applications was by using frameworks such as Autofac, Ninject, StructureMap and many others. However, DI is treated as a first-class citizen in ASP.NET Core.
The Dependency Inversion…
I’m an Argentinian guy living in Paris and working as a Full Stack developer on .NET Core projects