diff --git a/api/FilterLists.API/Startup.cs b/api/FilterLists.API/Startup.cs index b3f01609d..ddebe63d4 100644 --- a/api/FilterLists.API/Startup.cs +++ b/api/FilterLists.API/Startup.cs @@ -6,6 +6,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using MySQL.Data.EntityFrameworkCore; +using MySQL.Data.EntityFrameworkCore.Extensions; namespace FilterLists.API { @@ -30,7 +31,7 @@ public void ConfigureServices(IServiceCollection services) services.AddEntityFramework() .AddEntityFrameworkMySQL() .AddDbContext(options => - options.UseMySQL(ConnectionString)); + options.UseMySQL(Configuration.GetConnectionString("FilterListsConnection"))); services.AddMvc(); }