mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 增加 .Net Framework 4.0 的支持,出于环境考虑 .Net Framework 4.0 不支持异步方法;
- 增加 IFreeSql.Insert<T>(IEnumerable<T1> source) 方法;
This commit is contained in:
@ -381,7 +381,7 @@ namespace FreeSql.Sqlite
|
||||
case "AddTicks": return $"datetime({left},(({args1})/10000000)||' seconds')";
|
||||
case "AddYears": return $"datetime({left},({args1})||' years')";
|
||||
case "Subtract":
|
||||
switch ((exp.Arguments[0].Type.IsNullableType() ? exp.Arguments[0].Type.GenericTypeArguments.FirstOrDefault() : exp.Arguments[0].Type).FullName)
|
||||
switch ((exp.Arguments[0].Type.IsNullableType() ? exp.Arguments[0].Type.GetGenericArguments().FirstOrDefault() : exp.Arguments[0].Type).FullName)
|
||||
{
|
||||
case "System.DateTime": return $"(strftime('%s',{left})-strftime('%s',{args1}))";
|
||||
case "System.TimeSpan": return $"datetime({left},(({args1})*-1)||' seconds')";
|
||||
|
Reference in New Issue
Block a user