diff --git a/DD.Persistence.Client/Clients/SetpointClient.cs b/DD.Persistence.Client/Clients/SetpointClient.cs index 5a187f0..0432949 100644 --- a/DD.Persistence.Client/Clients/SetpointClient.cs +++ b/DD.Persistence.Client/Clients/SetpointClient.cs @@ -47,7 +47,7 @@ public class SetpointClient : BaseClient, ISetpointClient setpointConfigs.TryGetValue(valueDto.Key, out var type) && type is not null) - dict[valueDto.Key] = Convert.ChangeType(element.GetString(), type, CultureInfo.InvariantCulture) ?? valueDto.Value; + dict[valueDto.Key] = element.Deserialize(type) ?? valueDto.Value; else dict[valueDto.Key] = valueDto.Value; } diff --git a/DD.Persistence.Client/DD.Persistence.Client.csproj b/DD.Persistence.Client/DD.Persistence.Client.csproj index 2426147..3491596 100644 --- a/DD.Persistence.Client/DD.Persistence.Client.csproj +++ b/DD.Persistence.Client/DD.Persistence.Client.csproj @@ -11,9 +11,9 @@ DD.Persistence.Client - 1.3.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)).1 + 1.4.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)).1 - 1.3.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)).1 + 1.4.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)).1 DD.Persistence.Client @@ -40,8 +40,8 @@ - 1.3.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)) - 1.3.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)) + 1.4.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)) + 1.4.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)) diff --git a/DD.Persistence.Models/DD.Persistence.Models.csproj b/DD.Persistence.Models/DD.Persistence.Models.csproj index 7506594..6bcae66 100644 --- a/DD.Persistence.Models/DD.Persistence.Models.csproj +++ b/DD.Persistence.Models/DD.Persistence.Models.csproj @@ -11,9 +11,9 @@ DD.Persistence.Models - 1.1.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)) + 1.2.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)) - 1.1.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)) + 1.2.$([System.DateTime]::UtcNow.ToString(yyMM.ddHH)) DD.Persistence.Models