Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created November 29, 2025 10:05
Show Gist options
  • Select an option

  • Save wullemsb/ccdf2e1c84fb38d274f0f0cb00553f2f to your computer and use it in GitHub Desktop.

Select an option

Save wullemsb/ccdf2e1c84fb38d274f0f0cb00553f2f to your computer and use it in GitHub Desktop.
foreach (var database in _configuration.DatabaseConfigurations)
{
database.Value(services);
// Register a mapping from the database key to the DbContext type
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