diff --git a/src/ReC.Infrastructure/DependencyInjection.cs b/src/ReC.Infrastructure/DependencyInjection.cs index 0ab5890..a9653a0 100644 --- a/src/ReC.Infrastructure/DependencyInjection.cs +++ b/src/ReC.Infrastructure/DependencyInjection.cs @@ -1,5 +1,7 @@ -using Microsoft.EntityFrameworkCore; +using DigitalData.Core.Infrastructure; +using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; +using ReC.Domain.Entities; namespace ReC.Infrastructure; @@ -14,7 +16,9 @@ public static class DependencyInjection throw new InvalidOperationException("DbContextOptionsAction must be configured."); services.AddDbContext(configOpt.DbContextOptionsAction); - + + services.AddDbRepository(opt => opt.RegisterFromAssembly(typeof(RecAction).Assembly)); + return services; } diff --git a/src/ReC.Infrastructure/ReC.Infrastructure.csproj b/src/ReC.Infrastructure/ReC.Infrastructure.csproj index 5ce4d9b..04ccbf3 100644 --- a/src/ReC.Infrastructure/ReC.Infrastructure.csproj +++ b/src/ReC.Infrastructure/ReC.Infrastructure.csproj @@ -7,6 +7,7 @@ +