forked from ddrilling/AsbCloudServer
Fix EFExtensions.ExecInsertOr*() методы. Не правильно обрабатывался null.
This commit is contained in:
parent
7079d7e539
commit
43b89b8db8
@ -223,6 +223,7 @@ namespace AsbCloudDb
|
|||||||
private static string FormatValue(object? v)
|
private static string FormatValue(object? v)
|
||||||
=> v switch
|
=> v switch
|
||||||
{
|
{
|
||||||
|
null => "NULL",
|
||||||
string vStr => $"'{EscapeCurlyBraces(vStr)}'",
|
string vStr => $"'{EscapeCurlyBraces(vStr)}'",
|
||||||
DateTime vDate => $"'{FormatDateValue(vDate)}'",
|
DateTime vDate => $"'{FormatDateValue(vDate)}'",
|
||||||
DateTimeOffset vDate => $"'{FormatDateValue(vDate.UtcDateTime)}'",
|
DateTimeOffset vDate => $"'{FormatDateValue(vDate.UtcDateTime)}'",
|
||||||
|
Loading…
Reference in New Issue
Block a user