mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Update TDengine
This commit is contained in:
@@ -80,9 +80,13 @@ namespace SqlSugar.TDengine
|
||||
return GetDbColumn(it, null);
|
||||
}
|
||||
object value = null;
|
||||
if (it.Value is DateTime)
|
||||
if (it?.Value is DateTime)
|
||||
{
|
||||
value = ((DateTime)it.Value).ToString("O");
|
||||
value = it.Value.ObjToDate().ToString("yyyy-MM-dd HH:mm:ss.fff");
|
||||
}
|
||||
else if (it?.Value is bool)
|
||||
{
|
||||
value = value?.ToString()?.ToLower();
|
||||
}
|
||||
else if (it.Value is DateTimeOffset)
|
||||
{
|
||||
|
Reference in New Issue
Block a user