- Timestamp:
- 07/21/20 12:05:35 (4 years ago)
- Branches:
- master
- Children:
- 333cdac, 92a1f41
- Parents:
- dba4ca9 (diff), f33b0d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- Farmatiko
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Startup.cs
rdba4ca9 r0c48bbb 1 1 using Microsoft.AspNetCore.Builder; 2 2 using Microsoft.AspNetCore.Hosting; 3 using Microsoft.AspNetCore.HttpsPolicy;4 3 using Microsoft.AspNetCore.SpaServices.AngularCli; 5 4 using Microsoft.Extensions.Configuration; … … 30 29 }); 31 30 var connectionString = Configuration.GetSection("ConnectionStrings").GetValue<string>("FarmatikoConnection"); 32 services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => opt.UseNpgsql(connectionString)); 31 32 services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => { 33 opt.UseNpgsql(connectionString); 34 }); 33 35 34 36 } -
Farmatiko/appsettings.json
rdba4ca9 r0c48bbb 1 1 { 2 2 "ConnectionStrings": { 3 "FarmatikoConnection": " User ID=postgres;Password=@@Farmatiko@@.;database=FarmatikoDb;Integrated Security=true; Pooling=true;"3 "FarmatikoConnection": "Host=localhost;User ID=postgres;Password=@@Postgres@@.;database=FarmatikoDb;Integrated Security=true; Pooling=true;" 4 4 }, 5 5 "Logging": {
Note:
See TracChangeset
for help on using the changeset viewer.