From 88f98707fa1408213d93a5e380596bb72a252eea Mon Sep 17 00:00:00 2001 From: shept Date: Sat, 31 May 2025 01:31:54 +0500 Subject: [PATCH] add DI method to infrastructure --- .../DependencyInjection.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 SurveyLib.Infrastructure.EFCore/DependencyInjection.cs diff --git a/SurveyLib.Infrastructure.EFCore/DependencyInjection.cs b/SurveyLib.Infrastructure.EFCore/DependencyInjection.cs new file mode 100644 index 0000000..5b776b0 --- /dev/null +++ b/SurveyLib.Infrastructure.EFCore/DependencyInjection.cs @@ -0,0 +1,19 @@ +using Microsoft.Extensions.DependencyInjection; +using SurveyLib.Core.Repositories; +using SurveyLib.Infrastructure.EFCore.Repositories; + +namespace SurveyLib.Infrastructure.EFCore; + +public static class DependencyInjection +{ + public static IServiceCollection AddSurveyLibInfrastructure(this IServiceCollection services) + { + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + return services; + } +} \ No newline at end of file