- Timestamp:
- 07/21/20 22:17:54 (4 years ago)
- Branches:
- master
- Children:
- c352b2d
- Parents:
- 0c48bbb
- git-author:
- Mile Jankuloski <mile.jankuloski@…> (07/21/20 22:15:12)
- git-committer:
- Mile Jankuloski <mile.jankuloski@…> (07/21/20 22:17:54)
- Location:
- Farmatiko
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Startup.cs
r0c48bbb r92a1f41 1 1 using Microsoft.AspNetCore.Builder; 2 2 using Microsoft.AspNetCore.Hosting; 3 using Microsoft.AspNetCore.HttpsPolicy; 3 4 using Microsoft.AspNetCore.SpaServices.AngularCli; 4 5 using Microsoft.Extensions.Configuration; … … 29 30 }); 30 31 var connectionString = Configuration.GetSection("ConnectionStrings").GetValue<string>("FarmatikoConnection"); 31 32 services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => { 33 opt.UseNpgsql(connectionString); 34 }); 32 services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => opt.UseNpgsql(connectionString)); 35 33 36 34 } -
Farmatiko/appsettings.json
r0c48bbb r92a1f41 1 1 { 2 2 "ConnectionStrings": { 3 "FarmatikoConnection": " Host=localhost;User ID=postgres;Password=@@Postgres@@.;database=FarmatikoDb;Integrated Security=true; Pooling=true;"3 "FarmatikoConnection": "User ID=postgres;Password=@@Farmatiko@@.;database=FarmatikoDb;Integrated Security=true; Pooling=true;" 4 4 }, 5 5 "Logging": {
Note:
See TracChangeset
for help on using the changeset viewer.