Skip to content

Commit

Permalink
fix: repository registration
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarmesquita committed Feb 14, 2024
1 parent e746c08 commit 19f5b1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/Repository/Extensions/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ private static void AddUnitOfWork<TUnitOfWorkInterface, TUnitOfWorkImpl>(IServic

private static void AddGenericRepositories(IServiceCollection services, ServiceLifetime lifetime)
{
services.TryAdd(new ServiceDescriptor(typeof(QueryableRepository<,,>), typeof(QueryableRepository<,,>),
lifetime));
services.TryAdd(new ServiceDescriptor(typeof(AsyncQueryableRepository<,,>),
typeof(AsyncQueryableRepository<,,>), lifetime));
services.TryAdd(new ServiceDescriptor(typeof(IRepository<,,>), typeof(QueryableRepository<,,>), lifetime));
services.TryAdd(new ServiceDescriptor(typeof(IAsyncRepository<,,>), typeof(AsyncQueryableRepository<,,>), lifetime));
services.TryAdd(new ServiceDescriptor(typeof(IQueryableRepository<,,>), typeof(QueryableRepository<,,>), lifetime));
services.TryAdd(new ServiceDescriptor(typeof(IAsyncQueryableRepository<,,>), typeof(AsyncQueryableRepository<,,>), lifetime));
}

private static void AddRepositories(IServiceCollection services, RepositoryOptions repoOptions)
Expand Down
6 changes: 3 additions & 3 deletions src/eQuantic.Core.Data.EntityFramework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PropertyGroup>
<Description>Core Data library for Entity Framework</Description>
<AssemblyTitle>eQuantic.Core.Data.EntityFramework</AssemblyTitle>
<Version>4.2.0.0</Version>
<Version>4.2.1.0</Version>
<Authors>eQuantic Systems</Authors>
<TargetFrameworks>netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
<AssemblyName>eQuantic.Core.Data.EntityFramework</AssemblyName>
Expand All @@ -23,8 +23,8 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Copyright>Copyright © 2016</Copyright>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<FileVersion>4.2.0.0</FileVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<FileVersion>4.2.1.0</FileVersion>
<PackageIcon>Icon.png</PackageIcon>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down

0 comments on commit 19f5b1b

Please sign in to comment.