using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; namespace Drab.LocalDb.IoC; public static class IocLocalDbRegister { public static IServiceCollection AddLocalDatabase(this IServiceCollection services, ILocalDbConfiguration localDbConfiguration) { services.AddDbContext(cx => cx.UseSqlite(localDbConfiguration.ConnectionString)); return services; } }