using DotBased.AspNet.Authority.EFCore.Repositories; using DotBased.AspNet.Authority.Repositories; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; namespace DotBased.AspNet.Authority.EFCore; public static class DI { public static IServiceCollection AddAuthorityContext(this IServiceCollection services, Action options) { services.AddDbContextFactory(options); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); return services; } }