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

Skip and warn of duplicated SQL Server foreign keys #25378

Merged
merged 13 commits into from
Aug 10, 2021
Prev Previous commit
Next Next commit
fix up
Erik Ejlskov Jensen committed Jul 31, 2021
commit 5b968808340ed66c19ec9fdcb393201199745c7e
2 changes: 1 addition & 1 deletion src/EFCore.SqlServer/Properties/SqlServerStrings.resx
Original file line number Diff line number Diff line change
@@ -254,7 +254,7 @@
</data>
<data name="DuplicateForeignKeyConstraintIgnored" xml:space="preserve">
<value>Skipping foreign key '{foreignKeyName}' on table '{tableName}' since it is a duplicate of '{duplicateForeignKeyName}'.</value>
<comment>Debug SqlServerEventId.DuplicateForeignKeyConstraintIgnored string string string</comment>
<comment>Warning SqlServerEventId.DuplicateForeignKeyConstraintIgnored string string string</comment>
</data>
<data name="LogSavepointsDisabledBecauseOfMARS" xml:space="preserve">
<value>Savepoints are disabled because Multiple Active Result Sets (MARS) is enabled. If 'SaveChanges' fails, then the transaction cannot be automatically rolled back to a known clean state. Instead, the transaction should be rolled back by the application before retrying 'SaveChanges'. See https://go.microsoft.com/fwlink/?linkid=2149338 for more information. To identify the code which triggers this warning, call 'ConfigureWarnings(w =&gt; w.Throw(SqlServerEventId.SavepointsDisabledBecauseOfMARS))'.</value>