Skip to content

Introduce UseAzureSynapse and UseAzureSql#34052

Merged
cincuranet merged 7 commits intodotnet:mainfrom
cincuranet:synapse
Aug 6, 2024
Merged

Introduce UseAzureSynapse and UseAzureSql#34052
cincuranet merged 7 commits intodotnet:mainfrom
cincuranet:synapse

Conversation

@cincuranet
Copy link
Copy Markdown
Contributor

Fixes #33816

@cincuranet cincuranet changed the title Synapse Introduce UseAzureSynapse and UseAzureSql Jun 21, 2024
@cincuranet cincuranet marked this pull request as ready for review June 25, 2024 17:57
@cincuranet cincuranet requested a review from a team June 25, 2024 17:57
Comment thread src/EFCore.SqlServer/Extensions/AzureSqlDbContextOptionsBuilderExtensions.cs Outdated
Comment thread src/EFCore.SqlServer/Extensions/AzureSynapseDbContextOptionsBuilderExtensions.cs Outdated
Comment thread src/EFCore.SqlServer/Extensions/AzureSqlServiceCollectionExtensions .cs Outdated
@AndriySvyryd
Copy link
Copy Markdown
Member

AndriySvyryd commented Jul 11, 2024

@cincuranet Let me know once this is ready for review again

@cincuranet
Copy link
Copy Markdown
Contributor Author

@AndriySvyryd This should be now ready for review.

@cincuranet cincuranet requested a review from AndriySvyryd July 17, 2024 11:08
Comment thread src/EFCore.SqlServer/Extensions/SqlServerDbContextOptionsBuilderExtensions.cs Outdated
Comment thread src/EFCore.SqlServer/Infrastructure/Internal/SqlServerSingletonOptions.cs Outdated
Comment thread src/EFCore.SqlServer/Infrastructure/Internal/SqlServerSingletonOptions.cs Outdated
Comment thread src/EFCore.SqlServer/Query/Internal/SqlServerSqlExpressionFactory.cs Outdated
Comment thread src/EFCore.SqlServer/Infrastructure/Internal/SqlServerOptionsExtension.cs Outdated
Comment thread src/EFCore.SqlServer/Infrastructure/Internal/SqlServerOptionsExtension.cs Outdated
@cincuranet cincuranet merged commit 16ea450 into dotnet:main Aug 6, 2024
@cincuranet cincuranet deleted the synapse branch August 6, 2024 06:42
@AndriySvyryd
Copy link
Copy Markdown
Member

Looking at this again I find it confusing that you can call .UseSqlServer(b => UseAzureSqlCompatibilityLevel())
Each of the Use* methods should accept a different builder type, then they each could just have a UseCompatibilityLevel method that corresponds to the target engine.
Additionally, for ConfigureSqlEngine the builder should have a non-obsolete method that enables a retrying execution strategy if one wasn't configured (I don't remember what we decided to name this)

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.

Introduce UseAzureSql/UseAzureSynapse as alternatives to UseSqlServer

2 participants