using Duempelkas.App.Services; using Duempelkas.Infrastructure.Persistence; using Duempelkas.Infrastructure.Services; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; namespace Duempelkas.Infrastructure; public static class DependencyInjection { public static IServiceCollection AddInfrastructure(this IServiceCollection services, string connectionString) { services.AddDbContext(options => options.UseSqlite(connectionString)); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddSingleton(); return services; } }