This package has been discontinued because it never evolved, and the code present in this package does not justify its continuation. It is preferable to implement this code directly in the project.
Scans assemblies and add the repositories in container. To use, with an IServiceCollection
- .NET 3.1 or more
- .NET Standard 2.1
This package is available through Nuget Packages: https://www.nuget.org/packages/PowerUtils.BuildingBlocks.Data.Extensions.Microsoft.DI
Nuget
Install-Package PowerUtils.BuildingBlocks.Data.Extensions.Microsoft.DI
.NET CLI
dotnet add package PowerUtils.BuildingBlocks.Data.Extensions.Microsoft.DI
Clean extra spaces. Replace tabs to one space and double spaces to one space
services.AddRepositories();
services.AddRepositories(typeof(Program).Assembly);
services.AddRepositories(ServiceLifetime.Transient, typeof(Program).Assembly);
If you have any questions, comments, or suggestions, please open an issue or create a pull request