Skip to content

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Dec 5, 2023

Now the configuration specified in AddDbContext, AddDbContextPool, AddDbContextFactory and AddPooledDbContextFactory will be applied in the order specified if two or more of these methods are called with the same context type.

This is a breaking change if the configuration was conflicting, since previously the first one won and now the last one will win.

Additionally, ConfigureDbContext can be called before or after the aforementioned methods to perform additional configuration without affecting the DbContext registration.

@AndriySvyryd AndriySvyryd force-pushed the CombinableAddDbContext branch from 79cb487 to 53070f8 Compare December 6, 2023 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants