Fix EFExtensions.ExecInsertOr*() методы. Не правильно обрабатывался null.

This commit is contained in:
ngfrolov 2024-05-16 15:10:21 +05:00
parent 7079d7e539
commit 43b89b8db8
Signed by untrusted user who does not match committer: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -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)}'",