mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 增加 ISelect.AsTreeCte() 递归查询树表(向下或向下);
This commit is contained in:
@ -73,7 +73,8 @@ namespace FreeSql.Odbc.SqlServer
|
||||
{
|
||||
if (types[a] == typeof(string)) news[a] = objs[a];
|
||||
else if (types[a].NullableTypeOrThis() == typeof(Guid)) news[a] = $"cast({objs[a]} as char(36))";
|
||||
else news[a] = $"cast({objs[a]} as nvarchar)";
|
||||
else if (types[a].IsNumberType()) news[a] = $"cast({objs[a]} as varchar)";
|
||||
else news[a] = $"cast({objs[a]} as nvarchar(max))";
|
||||
}
|
||||
return string.Join(" + ", news);
|
||||
}
|
||||
|
Reference in New Issue
Block a user