Skip to content

Commit 138568e

Browse files
committed
SQL Client & ADD Added
1 parent 1dedb68 commit 138568e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

DotNetCoreSqlDb.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<ItemGroup>
1111
<!-- include the migrationsbundle file generated by the prepackage hook (see azure.yaml) -->
1212
<Content Include="migrationsbundle" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
13+
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.2" />
1314
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.6" />
1415
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.6">
1516
<PrivateAssets>all</PrivateAssets>

appsettings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"ConnectionStrings": {
1010
// The following connection string works for running the .NET application in the dev container.
1111
// If running this project in Visual Studio in Windows, use the commented connection string instead.
12-
"MyDbConnection": "Server=localhost;Database=ApplicationDB;User Id=sa;Password=P@ssw0rd;TrustServerCertificate=True;MultipleActiveResultSets=true"
12+
//"MyDbConnection": "Server=localhost;Database=ApplicationDB;User Id=sa;Password=P@ssw0rd;TrustServerCertificate=True;MultipleActiveResultSets=true"
13+
"MyDbConnection": "Server=tcp:dev-4u4qhiztjanba-server.database.windows.net;Authentication=Active Directory Default; Database=dev-4u4qhiztjanba-database;"
1314
//"MyDbConnection": "Server=(localdb)\\mssqllocaldb;Database=MyDatabaseContext-8e1630ac-d3ae-4719-955b-5d3235f3fadf;Trusted_Connection=True;MultipleActiveResultSets=true"
1415
}
1516
}

0 commit comments

Comments
 (0)