- 增加 ISelect.AsTreeCte() 递归查询树表(向下或向下);

This commit is contained in:
28810
2020-06-27 17:01:51 +08:00
parent 4cde2a3280
commit 838dd83e47
17 changed files with 368 additions and 72 deletions

View File

@ -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);
}