Skip to content

Fixes to implicit DbContext registration around factories - #35486

Merged
roji merged 1 commit into
dotnet:mainfrom
roji:DbContextStuff
Jan 16, 2025
Merged

roji merged 1 commit into
dotnet:mainfrom
roji:DbContextStuff

Conversation

@roji

@roji roji commented Jan 16, 2025 •

Copy link
Copy Markdown
Member

Fixes #26528
Fixes #35485

@roji
roji requested a review from AndriySvyryd January 16, 2025 11:55
@roji
roji requested a review from a team as a code owner January 16, 2025 11:55

@AndriySvyryd AndriySvyryd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also update https://learn.microsoft.com/ef/core/performance/advanced-performance-topics#managing-state-in-pooled-contexts to remove the need of registering the context. Also mention that when a factory is registered it's slightly more performant to depend on the factory than on the context, even if only one instance will be used.

@AndriySvyryd

Copy link
Copy Markdown
Member

And this fixes #26528, not #35484

@roji
roji merged commit 47e5d25 into dotnet:main Jan 16, 2025
@roji
roji deleted the DbContextStuff branch January 16, 2025 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants