Skip to content

Document EnableRetryOnFailureByDefault (from #4899).#4997

Merged
cincuranet merged 1 commit intodotnet:mainfrom
cincuranet:doc-retry
Apr 4, 2025
Merged

Document EnableRetryOnFailureByDefault (from #4899).#4997
cincuranet merged 1 commit intodotnet:mainfrom
cincuranet:doc-retry

Conversation

@cincuranet
Copy link
Copy Markdown
Contributor

@cincuranet cincuranet requested review from a team and Copilot April 4, 2025 11:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

entity-framework/core/providers/sql-server/index.md:48

  • Consider clarifying 'EF 9' as 'EF Core 9' for better accuracy and consistency, helping readers differentiate from earlier versions of Entity Framework.
EF 9 introduced `EnableRetryOnFailureByDefault` method that configures the context to [default execution strategy](xref:core/miscellaneous/connection-resiliency) unless it is configured explicitly (i.e. when using DI). To use it, simply call `ConfigureSqlEngine(c => c.EnableRetryOnFailureByDefault())` and later you can use `UseSqlServer` or `UseAzureSql` or `UseAzureSynapse` as usual.

@cincuranet cincuranet enabled auto-merge (squash) April 4, 2025 11:49
@cincuranet cincuranet merged commit 45baf92 into dotnet:main Apr 4, 2025
3 checks passed
@cincuranet cincuranet deleted the doc-retry branch April 4, 2025 11:54
Comment thread entity-framework/core/providers/sql-server/index.md
@cincuranet cincuranet mentioned this pull request Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants