Created
November 29, 2025 10:19
-
-
Save wullemsb/376c24d3367da6d3ca563df52d2b1765 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private readonly Lock _lock = new(); | |
| public override void Initialize(IServiceCollection services) | |
| { | |
| foreach (var database in _configuration.DatabaseConfigurations) | |
| { | |
| lock (_lock) | |
| ConfigurationMappings.DbContextTypes[database.Key] = _configuration.DbContextTypes[database.Key]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment