fixed migrator optional secret protected file appsettings.

This commit is contained in:
Ruberoid 2025-07-19 15:16:07 +03:00
parent e01d2d0a14
commit 56734b4f52

View File

@ -16,7 +16,7 @@ public class DesignTimeTextMatcherContextFactory : IDesignTimeDbContextFactory<T
var configuration = new ConfigurationBuilder()
.SetBasePath(AppDomain.CurrentDomain.BaseDirectory)
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.AddJsonFile("appsettings.protected.json", optional: false, reloadOnChange: true)
.AddJsonFile("appsettings.protected.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables()
.Build();