mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 ISelect.AsTreeCte() 递归查询树表(向下或向下);
This commit is contained in:
		@@ -85,7 +85,8 @@ namespace FreeSql.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