using NG_2023_Kanban.DataLayer.Repositories; using NG_2023_Kanban.DataLayer.Interfaces; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace NG_2023_Kanban.DataLayer.DbStartup { public static class Injecting { public static void InjectDAL( this IServiceCollection services, IConfiguration configuration) { services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddDbContext(options => { options.UseSqlServer( configuration["ConnectionString"]); }); } } }