Upgrade EF components to 9.0 #5207
Labels
area-integrations
Issues pertaining to Aspire Integrations packages
enhancement
An enhancement to an existing feature or capability.
Milestone
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
EF 9.0 introduced engine-specific API for SQL Server, Azure SQL and Azure Synapse. If
UseAzureSynapse
orUseAzureSql
is called by the user inAddDbContext
, thenEnrichSqlServerDbContext
will throw, because it callsUseSqlServer
and now that results in conflicting configuration.EF 9.0 also has a number of significant improvements for migrations scenarios relevant to Aspire.
Describe the solution you'd like
EnrichSqlServerDbContext
should callConfigureSqlEngine
withEnableRetryOnFailureByDefault
instead ofUseSqlServer
.Additionally, it and other EF components should call
ConfigureDbContext
instead ofPatchServiceDescriptor
as that depends on implementation details.Additional context
No response
The text was updated successfully, but these errors were encountered: