From 43b89b8db84847eb2502aa53476193e107f55f32 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Thu, 16 May 2024 15:10:21 +0500 Subject: [PATCH] =?UTF-8?q?Fix=20EFExtensions.ExecInsertOr*()=20=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D0=BE=D0=B4=D1=8B.=20=D0=9D=D0=B5=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C=D0=BD=D0=BE=20=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=B0=D1=82=D1=8B=D0=B2=D0=B0=D0=BB=D1=81=D1=8F=20?= =?UTF-8?q?null.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudDb/EFExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/AsbCloudDb/EFExtensions.cs b/AsbCloudDb/EFExtensions.cs index 4b8361e7..8829462a 100644 --- a/AsbCloudDb/EFExtensions.cs +++ b/AsbCloudDb/EFExtensions.cs @@ -223,6 +223,7 @@ namespace AsbCloudDb private static string FormatValue(object? v) => v switch { + null => "NULL", string vStr => $"'{EscapeCurlyBraces(vStr)}'", DateTime vDate => $"'{FormatDateValue(vDate)}'", DateTimeOffset vDate => $"'{FormatDateValue(vDate.UtcDateTime)}'",