Skip to content

Commit

Permalink
SQL Client & ADD Added
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin27verma committed Dec 2, 2024
1 parent 1dedb68 commit 138568e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions DotNetCoreSqlDb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<ItemGroup>
<!-- include the migrationsbundle file generated by the prepackage hook (see azure.yaml) -->
<Content Include="migrationsbundle" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.6">
<PrivateAssets>all</PrivateAssets>
Expand Down
3 changes: 2 additions & 1 deletion appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"ConnectionStrings": {
// The following connection string works for running the .NET application in the dev container.
// If running this project in Visual Studio in Windows, use the commented connection string instead.
"MyDbConnection": "Server=localhost;Database=ApplicationDB;User Id=sa;Password=P@ssw0rd;TrustServerCertificate=True;MultipleActiveResultSets=true"
//"MyDbConnection": "Server=localhost;Database=ApplicationDB;User Id=sa;Password=P@ssw0rd;TrustServerCertificate=True;MultipleActiveResultSets=true"
"MyDbConnection": "Server=tcp:dev-4u4qhiztjanba-server.database.windows.net;Authentication=Active Directory Default; Database=dev-4u4qhiztjanba-database;"
//"MyDbConnection": "Server=(localdb)\\mssqllocaldb;Database=MyDatabaseContext-8e1630ac-d3ae-4719-955b-5d3235f3fadf;Trusted_Connection=True;MultipleActiveResultSets=true"
}
}

0 comments on commit 138568e

Please sign in to comment.