From 19f5b1bfc34b70e7cdc77bbaa018712d87f52d86 Mon Sep 17 00:00:00 2001 From: Edgar Mesquita Date: Wed, 14 Feb 2024 16:00:27 +0000 Subject: [PATCH] fix: repository registration --- src/Repository/Extensions/ServiceCollectionExtensions.cs | 8 ++++---- src/eQuantic.Core.Data.EntityFramework.csproj | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Repository/Extensions/ServiceCollectionExtensions.cs b/src/Repository/Extensions/ServiceCollectionExtensions.cs index a5dd24d..00b42f7 100644 --- a/src/Repository/Extensions/ServiceCollectionExtensions.cs +++ b/src/Repository/Extensions/ServiceCollectionExtensions.cs @@ -77,10 +77,10 @@ private static void AddUnitOfWork(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) diff --git a/src/eQuantic.Core.Data.EntityFramework.csproj b/src/eQuantic.Core.Data.EntityFramework.csproj index 78e81a7..d2b773b 100644 --- a/src/eQuantic.Core.Data.EntityFramework.csproj +++ b/src/eQuantic.Core.Data.EntityFramework.csproj @@ -4,7 +4,7 @@ Core Data library for Entity Framework eQuantic.Core.Data.EntityFramework - 4.2.0.0 + 4.2.1.0 eQuantic Systems netstandard2.1;net6.0;net7.0;net8.0 eQuantic.Core.Data.EntityFramework @@ -23,8 +23,8 @@ LICENSE README.md Copyright © 2016 - 4.2.0.0 - 4.2.0.0 + 4.2.1.0 + 4.2.1.0 Icon.png latest