KEMBAR78
Update SqlServerStrings.Designer.cs by vincent1405 · Pull Request #24020 · dotnet/efcore · GitHub
Skip to content

Conversation

@vincent1405
Copy link
Contributor

@vincent1405 vincent1405 commented Jan 29, 2021

Summary of the changes

  • The warning message logged when we have Multiple Active Result Sets (MARS) on SQL Server indicates to add:
    .ConfigureWarnings(w => w.Throw(RelationalEventId.SavepointsDisabledBecauseOfMARS));
    to our optionsBuilder in the DbContext.

The SavepointsDisabledBecauseOfMARS is not a member of RelationalEventId but is a member of SqlServerEventId.
Fixes #24019

I think the class which contains the SavepointsDisabledBecauseOfMARS is SqlServerEventId, not RelationalEventId.
@roji
Copy link
Member

roji commented Jan 29, 2021

Thanks @vincent1405 - but note the Designer file is auto-generated. Can you please update the resx as well?

@roji roji self-assigned this Jan 29, 2021
@dnfadmin
Copy link

dnfadmin commented Feb 4, 2021

CLA assistant check
All CLA requirements met.

@roji
Copy link
Member

roji commented Feb 4, 2021

@vincent1405 I've added a commit to fix the resx as well, so this is ready for merging. However, you'll need to sign the SLA (link above) before we can merge this PR.

@vincent1405
Copy link
Contributor Author

@roji Thank you, sorry, I had no time to update the resx.

@vincent1405 vincent1405 closed this Feb 4, 2021
@roji roji reopened this Feb 4, 2021
@roji roji merged commit caa4e41 into dotnet:main Feb 4, 2021
@roji
Copy link
Member

roji commented Feb 4, 2021

Thanks @vincent1405, merged.

@vincent1405
Copy link
Contributor Author

Thanks @roji !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong advice when Save points for Multiple Active Result Sets (MARS)

4 participants