Registering all types as generic interfaces in assembly in dotnet core
www.crispy-engineering.com
Let’s say that we have an interface in your app as IRepository<T> which has dozens of implementations. Wouldn’t it be so nice to define the registration rule for dependency injection containers, only once so that it can cover all existing, and future repositories, without additional effort?
Registering all types as generic interfaces in assembly in dotnet core
Registering all types as generic interfaces…
Registering all types as generic interfaces in assembly in dotnet core
Let’s say that we have an interface in your app as IRepository<T> which has dozens of implementations. Wouldn’t it be so nice to define the registration rule for dependency injection containers, only once so that it can cover all existing, and future repositories, without additional effort?