SqlAlias
所属分类:SQL Server
开发工具:PowerShell
文件大小:10KB
下载次数:0
上传日期:2022-11-14 06:44:36
上 传 者:
sh-1993
说明: 将服务器别名应用于Microsoft SQL server连接字符串
(Applies server aliases to Microsoft SQL Server connection strings)
文件列表:
GitVersion.yml (26, 2022-11-14)
LICENCE.md (1070, 2022-11-14)
appveyor.yml (227, 2022-11-14)
build.cake (3607, 2022-11-14)
build.cmd (607, 2022-11-14)
build.ps1 (6100, 2022-11-14)
src (0, 2022-11-14)
src\SqlAlias.sln (1590, 2022-11-14)
src\SqlAlias (0, 2022-11-14)
src\SqlAlias\Assembly.cs (79, 2022-11-14)
src\SqlAlias\SqlAlias.cs (1310, 2022-11-14)
src\SqlAlias\SqlAlias.csproj (931, 2022-11-14)
src\Tests (0, 2022-11-14)
src\Tests\AllTheTests.cs (734, 2022-11-14)
src\Tests\Tests.csproj (497, 2022-11-14)
tools (0, 2022-11-14)
tools\packages.config (105, 2022-11-14)
# SqlAlias
[![Build status](https://ci.appveyor.com/api/projects/status/dnnn06mquuudqpkm/branch/master?svg=true)](https://ci.appveyor.com/project/droyad/sqlalias/branch/master)
SqlAlias applies alias definitions from the registry to the server portion of a Microsoft SQL Server connection string. Unlike full framework applications, .NET Core apps and websites [do not
do this](https://github.com/dotnet/corefx/issues/2575) by default.
The code is based on [user2771704's StackOverflow answer](https://stackoverflow.com/a/45330995/10784).
## Usage
Install the [SqlAlias package](https://www.nuget.org/packages/SqlAlias) from NuGet
```
using SqlAlias;
myConnectionString = Aliases.Map(myConnectionString)
```
Changes are only made to the connection string if the OS is Windows and if it is running on the .NET Core runtime.
近期下载者:
相关文件:
收藏者: