mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- continue
This commit is contained in:
@ -95,11 +95,6 @@ namespace FreeSql.GBase
|
||||
var pam = AppendParamter(specialParams, "", null, type, value);
|
||||
return pam.ParameterName;
|
||||
}
|
||||
if (type == typeof(TimeSpan) || type == typeof(TimeSpan?))
|
||||
{
|
||||
var ts = (TimeSpan)value;
|
||||
return $"interval({ts.Days} {ts.Hours}:{ts.Minutes}:{ts.Seconds}.{ts.Milliseconds}) day(9) to fraction";
|
||||
}
|
||||
if (type == typeof(DateTime))
|
||||
{
|
||||
if (Utils.TypeHandlers.TryGetValue(typeof(DateTime), out var typeHandler)) return FormatSql("{0}", typeHandler.Serialize(value), 1);
|
||||
|
Reference in New Issue
Block a user