mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 表达式树函数解析 byte[] Length;#505
This commit is contained in:
		@@ -19,6 +19,10 @@ namespace FreeSql.MsAccess
 | 
			
		||||
            Func<Expression, string> getExp = exparg => ExpressionLambdaToSql(exparg, tsc);
 | 
			
		||||
            switch (exp.NodeType)
 | 
			
		||||
            {
 | 
			
		||||
                //case ExpressionType.ArrayLength:
 | 
			
		||||
                //    var arrOper = (exp as UnaryExpression)?.Operand;
 | 
			
		||||
                //    if (arrOper.Type == typeof(byte[])) return $"lenb({getExp(arrOper)})";  #505
 | 
			
		||||
                //    break;
 | 
			
		||||
                case ExpressionType.Convert:
 | 
			
		||||
                    var operandExp = (exp as UnaryExpression)?.Operand;
 | 
			
		||||
                    var gentype = exp.Type.NullableTypeOrThis();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user