mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
minor cleanup
This commit is contained in:
parent
791b744c05
commit
fb90989a3a
1 changed files with 2 additions and 3 deletions
|
|
@ -13,9 +13,8 @@ public static class ConfigureServicesCollection
|
|||
public static void AddFilterListsRepositories(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
services.AddSingleton(c => configuration);
|
||||
services.AddEntityFrameworkMySql()
|
||||
.AddDbContext<FilterListsDbContext>(options =>
|
||||
options.UseMySql(configuration.GetConnectionString("FilterListsConnection")));
|
||||
services.AddEntityFrameworkMySql().AddDbContext<FilterListsDbContext>(options =>
|
||||
options.UseMySql(configuration.GetConnectionString("FilterListsConnection")));
|
||||
services.TryAddScoped<IListRepository, ListRepository>();
|
||||
services.TryAddScoped<ITableCsvRepository, TableCsvRepository>();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue