mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 01:14:33 +08:00
Update pgsql
This commit is contained in:
parent
a22c69dac9
commit
c5b00ab130
@ -84,6 +84,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
value = ((DateTime)it.Value).ToString("O");
|
value = ((DateTime)it.Value).ToString("O");
|
||||||
}
|
}
|
||||||
|
else if (it.Value is DateTimeOffset)
|
||||||
|
{
|
||||||
|
return FormatDateTimeOffset(it.Value);
|
||||||
|
}
|
||||||
else if (it.IsArray&&it.Value!=null)
|
else if (it.IsArray&&it.Value!=null)
|
||||||
{
|
{
|
||||||
return FormatValue(it.Value,it.PropertyName,i,it);
|
return FormatValue(it.Value,it.PropertyName,i,it);
|
||||||
@ -147,6 +151,10 @@ namespace SqlSugar
|
|||||||
return Convert.ToInt64(value);
|
return Convert.ToInt64(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (type == UtilConstants.DateTimeOffsetType)
|
||||||
|
{
|
||||||
|
return FormatDateTimeOffset(value);
|
||||||
|
}
|
||||||
else if (type == UtilConstants.BoolType)
|
else if (type == UtilConstants.BoolType)
|
||||||
{
|
{
|
||||||
return value.ObjToBool() ? "1" : "0";
|
return value.ObjToBool() ? "1" : "0";
|
||||||
@ -161,6 +169,10 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public override string FormatDateTimeOffset(object value)
|
||||||
|
{
|
||||||
|
return "'" + ((DateTimeOffset)value).ToString("o") + "'";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user