Changes in Farmatiko/Startup.cs [30a465f:f33b0d4]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Startup.cs
r30a465f rf33b0d4 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 }
Note:
See TracChangeset
for help on using the changeset viewer.