committed

This commit is contained in:
HuskyTeufel
2021-05-05 13:06:56 +02:00
parent 2c4bcde9c8
commit af01e537cf
17 changed files with 234 additions and 38 deletions

View File

@@ -24,7 +24,7 @@ namespace DataStoring.EfCore
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
base.OnConfiguring(optionsBuilder);
optionsBuilder.UseNpgsql("Host = localhost; Database = DP; Username = DP; Password = DP");
optionsBuilder.UseNpgsql("Host = 192.168.1.195; Database = DP; Username = DP; Password = DP");
}
}
}

View File

@@ -30,7 +30,7 @@ namespace DataStoring.EfCore
}
catch(Exception e)
{
throw new Exception("Cant delete entity with id " + id);
throw new Exception(string.Format("Cant delete entity with id {0} # {1} " ,id,e.Message));
}
}