diff --git a/EnvelopeGenerator.Application/SQL/ParamsExtensions.cs b/EnvelopeGenerator.Application/SQL/ParamsExtensions.cs index 2558eb5e..9f8ad1ec 100644 --- a/EnvelopeGenerator.Application/SQL/ParamsExtensions.cs +++ b/EnvelopeGenerator.Application/SQL/ParamsExtensions.cs @@ -1,4 +1,6 @@ -namespace EnvelopeGenerator.Application.SQL; +using System.Globalization; + +namespace EnvelopeGenerator.Application.SQL; /// /// Extension method for converting objects to SQL parameter strings. @@ -19,7 +21,7 @@ public static class ParamsExtensions else if (obj is bool boolVal) return boolVal ? "1" : "0"; else if (obj is double doubleVal) - return $"'{doubleVal}'"; + return $"'{doubleVal.ToString(CultureInfo.InvariantCulture)}'"; else if (obj is int intVal) return intVal.ToString(); else