mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- continue
This commit is contained in:
@ -144,14 +144,7 @@ namespace FreeSql.ShenTong
|
||||
value = getParamterValue(type, value);
|
||||
var type2 = value.GetType();
|
||||
if (type2 == typeof(byte[])) return $"0x{CommonUtils.BytesSqlRaw(value as byte[])}";
|
||||
if (type2 == typeof(TimeSpan) || type2 == typeof(TimeSpan?))
|
||||
{
|
||||
var ts = (TimeSpan)value;
|
||||
var hh = Math.Min(24, (int)Math.Floor(ts.TotalHours));
|
||||
if (hh >= 24) hh = 0;
|
||||
value = $"{hh}:{ts.Minutes}:{ts.Seconds}.{ts.Milliseconds}";
|
||||
}
|
||||
else if (value is Array)
|
||||
if (value is Array)
|
||||
{
|
||||
var valueArr = value as Array;
|
||||
var eleType = type2.GetElementType();
|
||||
|
Reference in New Issue
Block a user