using HrynCo.DAL.Abstract; using HrynCo.NotificationService.DAL.Abstract.Repositories; using HrynCo.NotificationService.DAL.EF.Core; using HrynCo.NotificationService.DAL.EF.Repositories; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; namespace HrynCo.NotificationService.DAL.EF; public static class ServiceCollectionExtensions { public static IServiceCollection AddNotificationDataAccess( this IServiceCollection services, string connectionString) { services.AddDbContext(options => options.UseNpgsql(connectionString)); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); return services; } }