This commit is contained in:
parent
31cc20d885
commit
552f90b424
@ -33,8 +33,8 @@ namespace HanyadikHetVan
|
|||||||
public void ConfigureServices(IServiceCollection services)
|
public void ConfigureServices(IServiceCollection services)
|
||||||
{
|
{
|
||||||
services.AddDbContext<ApplicationDbContext>(options =>
|
services.AddDbContext<ApplicationDbContext>(options =>
|
||||||
options.UseSqlServer(
|
options.UseNpgsql(
|
||||||
Configuration.GetConnectionString("DefaultConnection")));
|
Configuration.GetConnectionString("PostgreSQLConnection")));
|
||||||
services.AddAutoMapper(Assembly.GetExecutingAssembly());
|
services.AddAutoMapper(Assembly.GetExecutingAssembly());
|
||||||
services.AddTransient<WeeklyTimeSpanService>();
|
services.AddTransient<WeeklyTimeSpanService>();
|
||||||
services.AddTransient<PauseService>();
|
services.AddTransient<PauseService>();
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-HanyadikHetVan-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true"
|
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-HanyadikHetVan-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true",
|
||||||
|
"PostgreSQLConnection": "User ID=hanyadikhetvan;Password=05acd81c-761a-4fb3-93ae-023281a88b73;Server=192.168.42.4;Port=5432;Database=hanyadikhetvan;Integrated Security=true;Pooling=true;"
|
||||||
},
|
},
|
||||||
"DefaultAdministrator": {
|
"DefaultAdministrator": {
|
||||||
"UserName": "testuser",
|
"UserName": "testuser",
|
||||||
|
Loading…
Reference in New Issue
Block a user