Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DbContextOptions composibility support #32518

Merged
merged 1 commit into from
Dec 8, 2023
Merged

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