using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using PARR.DAL.Context; using PARR.DAL.Services.Implementation; using PARR.DAL.Services.Implementations; using PARR.DAL.Services.Implementations.AIHIT; using PARR.DAL.Services.Implementations.V1; using PARR.DAL.Services.Interfaces; using PARR.DAL.Services.Interfaces.AIHIT; using PARR.DAL.Services.Interfaces.V1; namespace PARR.DAL { public static class ParrDalInstaller { public static void InstallDalServices(this IServiceCollection services, IConfiguration configuration) { services.AddDbContext(opt => opt.UseNpgsql(configuration.GetConnectionString("DefaultConnection")) ); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); } } }