Skip to content
This repository was archived by the owner on Mar 3, 2024. It is now read-only.

TechNobre/PowerUtils.BuildingBlocks.Data.Extensions.Microsoft.DI

PowerUtils.BuildingBlocks.Data.Extensions.Microsoft.DI

⚠️ DEPRECATED

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.

Logo

Scans assemblies and add the repositories in container. To use, with an IServiceCollection

License: MIT

Support to

  • .NET 3.1 or more
  • .NET Standard 2.1

Dependencies

  • PowerUtils.BuildingBlocks.Data NuGet
  • Microsoft.Extensions.DependencyInjection.Abstractions NuGet

How to use

Install NuGet package

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

ServiceCollectionExtensions

AddRepositories();

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);

Contribution

If you have any questions, comments, or suggestions, please open an issue or create a pull request

About

Scans assemblies and add the repositories in container. To use, with an IServiceCollection

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages