forked from thecodewrapper/CH.CleanArchitecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSecretsManagement.txt
13 lines (9 loc) · 1.1 KB
/
SecretsManagement.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
Add the following user secrets:
dotnet user-secrets --project CH.CleanArchitecture.Presentation.Web set "ConnectionStrings:ApplicationConnection" "{connection_string}"
dotnet user-secrets --project CH.CleanArchitecture.Presentation.Web set "ConnectionStrings:IdentityConnection" "{connection_string}"
Example:
dotnet user-secrets --project CH.CleanArchitecture.Presentation.Web set "ConnectionStrings:ApplicationConnection" "Data Source=.;Initial Catalog=CH.CleanArchitecture;Integrated Security=True;MultipleActiveResultSets=True"
dotnet user-secrets --project CH.CleanArchitecture.Presentation.Web set "ConnectionStrings:IdentityConnection" "Data Source=.;Initial Catalog=CH.CleanArchitecture;Integrated Security=True;MultipleActiveResultSets=True"
or edit the user secret json file directly and add:
"ConnectionStrings:ApplicationConnection": "Data Source=.\\SQLEXPRESS;Initial Catalog=CH.CleanArchitecture;Integrated Security=True;MultipleActiveResultSets=True",
"ConnectionStrings:IdentityConnection": "Data Source=.\\SQLEXPRESS;Initial Catalog=CH.CleanArchitecture;Integrated Security=True;MultipleActiveResultSets=True"