mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- 增加 Pgsql JToken/JObject/JArray 索引访问的表达式解析;
- 增加 object.Equals 表达式解析;
This commit is contained in:
		@@ -115,6 +115,7 @@ namespace FreeSql.PostgreSQL
 | 
			
		||||
                                left = objExp == null ? null : getExp(objExp);
 | 
			
		||||
                                switch (callExp.Method.Name)
 | 
			
		||||
                                {
 | 
			
		||||
                                    case "get_Item": return $"{left}->{getExp(callExp.Arguments[argIndex])}";
 | 
			
		||||
                                    case "Any": return $"(jsonb_array_length(coalesce({left},'[]')) > 0)";
 | 
			
		||||
                                    case "Contains":
 | 
			
		||||
                                        var json = getExp(callExp.Arguments[argIndex]);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user