dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.56k stars 1.94k forks source link

fix "Unrecognized escape sequence" in snippet #4716

Closed timdeschryver closed 4 weeks ago

timdeschryver commented 4 weeks ago

Today, a student tried to copy paste the existing snippet, which resulted in the "Unrecognized escape sequence" error. This PR updates the example to indicate that the connection string is to be interpreted verbatim.

This occurs on the page: https://learn.microsoft.com/en-us/ef/core/providers/?tabs=dotnet-core-cli#adding-a-database-provider-to-your-application