diff --git a/SewerStammGen.DAL/Services/PostgresqlData/SchachtDataService.cs b/SewerStammGen.DAL/Services/PostgresqlData/SchachtDataService.cs index 1a8008e..48c3751 100644 --- a/SewerStammGen.DAL/Services/PostgresqlData/SchachtDataService.cs +++ b/SewerStammGen.DAL/Services/PostgresqlData/SchachtDataService.cs @@ -99,9 +99,10 @@ namespace SewerStammGen.DAL.Services.PostgresqlData public async Task Update(Schacht entity) { + // TODO: Typo in Schachtype beheben. Dies erfordert jedoch ein Datenbank updater Siehe Issue #7 string command = @"UPDATE " + tableName + " SET " + "objektbezeichnung=@1, deckelrechtswert=@2, deckelhochwert=@3, deckelhoehe=@4, " + - "sohlrechtswert=@5, sohlhochwert=@6, sohlhoehe=@7, entwaesserung=@8, schachttype=@9, vermesser=@10, aufnahmedatum=@11, ref_projekt_id=@12 WHERE schacht_id=@13"; + "sohlrechtswert=@5, sohlhochwert=@6, sohlhoehe=@7, entwaesserung=@8, schachtype=@9, vermesser=@10, aufnahmedatum=@11, ref_projekt_id=@12 WHERE schacht_id=@13"; using(var cmd = new NpgsqlCommand(command,conn)) { cmd.Parameters.AddWithValue("1", entity.Objektbezeichnung); diff --git a/StammGenerator/Converters/EqualValueToParameterConverter.cs b/StammGenerator/Converters/EqualValueToParameterConverter.cs index b20ee92..f33a141 100644 --- a/StammGenerator/Converters/EqualValueToParameterConverter.cs +++ b/StammGenerator/Converters/EqualValueToParameterConverter.cs @@ -23,6 +23,7 @@ namespace StammGenerator.Converters if (targetType == typeof(EEntwaeserung)) return (EEntwaeserung)parameter; if (targetType == typeof(EExportType)) return (EExportType)parameter; if (targetType == typeof(EKodierungssystem)) return (EKodierungssystem)parameter; + if (targetType == typeof(ESchachtType)) return (ESchachtType)parameter; throw new NotImplementedException(); } }