Changeset f33b0d4
- Timestamp:
- 07/20/20 18:58:23 (4 years ago)
- Branches:
- master
- Children:
- 0c48bbb
- Parents:
- 171f106
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Startup.cs
r171f106 rf33b0d4 29 29 }); 30 30 var connectionString = Configuration.GetSection("ConnectionStrings").GetValue<string>("FarmatikoConnection"); 31 services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => opt.UseNpgsql(connectionString)); 31 32 services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => { 33 opt.UseNpgsql(connectionString); 34 }); 32 35 33 36 } -
Farmatiko/appsettings.json
r171f106 rf33b0d4 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": { -
FarmatikoData/Base/BaseEntity.cs
r171f106 rf33b0d4 9 9 public int Id { get; set; } 10 10 public DateTime CreatedOn { get; set; } 11 public DateTime DeletedOn { get; set; } 11 12 } 12 13 }
Note:
See TracChangeset
for help on using the changeset viewer.