Skip to content

Commit

Permalink
Support all documented aliases
Browse files Browse the repository at this point in the history
fix build

fixes #2722
  • Loading branch information
ErikEJ committed Dec 14, 2024
1 parent 9ffd555 commit 27f1d96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
mkdir vsix
7z x src/GUI/lib/efreveng80.exe.zip -oefreveng80 -y
dir /a:-d /s /b "efreveng80" | find /c ":\" > filecount.txt
findstr "164" filecount.txt
findstr "165" filecount.txt
- name: Extract and verify efreveng90.exe.zip file count
if: github.event_name != 'pull_request'
Expand All @@ -67,7 +67,7 @@ jobs:
mkdir vsix
7z x src/GUI/lib/efreveng90.exe.zip -oefreveng90 -y
dir /a:-d /s /b "efreveng90" | find /c ":\" > filecount.txt
findstr "147" filecount.txt
findstr "148" filecount.txt
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
Expand Down
8 changes: 8 additions & 0 deletions src/GUI/Shared/Helpers/SqlConnectionStringBuilderHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ public SqlConnectionStringBuilder GetBuilder(string connectionString)

private string ReplaceMdsKeywords(string connectionString)
{
// https://github.com/dotnet/SqlClient/blob/main/release-notes/2.0/2.0.0.md#new-connection-string-property-synonyms
connectionString = connectionString.Replace("Application Intent=", "ApplicationIntent=");
connectionString = connectionString.Replace("Connect Retry Count=", "ConnectRetryCount=");
connectionString = connectionString.Replace("Connect Retry Interval=", "ConnectRetryInterval=");
connectionString = connectionString.Replace("Pool Blocking Period=", "PoolBlockingPeriod=");
connectionString = connectionString.Replace("Multiple Active Result Sets=", "MultipleActiveResultSets=");
connectionString = connectionString.Replace("Multi Subnet Failover=", "MultiSubnetFailover=");
connectionString = connectionString.Replace("Transparent Network IP Resolution=", "TransparentNetworkIPResolution=");
connectionString = connectionString.Replace("Trust Server Certificate=", "TrustServerCertificate=");

return connectionString;
}
}
Expand Down

0 comments on commit 27f1d96

Please sign in to comment.