|
|
@ -20,6 +20,7 @@ namespace SqlSugar |
|
|
|
case ResolveExpressType.SelectMultiple: |
|
|
|
case ResolveExpressType.FieldSingle: |
|
|
|
case ResolveExpressType.FieldMultiple: |
|
|
|
#region Filed
|
|
|
|
try |
|
|
|
{ |
|
|
|
var value = ExpressionTool.DynamicInvoke(expression); |
|
|
@ -65,15 +66,21 @@ namespace SqlSugar |
|
|
|
{ |
|
|
|
Check.ThrowNotSupportedException("NewArrayExpression"); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
break; |
|
|
|
case ResolveExpressType.ArraySingle: |
|
|
|
foreach (var item in expression.Expressions) |
|
|
|
{ |
|
|
|
base.Expression = item; |
|
|
|
base.Start(); |
|
|
|
} |
|
|
|
ArraySingle(expression); |
|
|
|
break; |
|
|
|
case ResolveExpressType.Join: |
|
|
|
Join(parameter, expression); |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void Join(ExpressionParameter parameter, NewArrayExpression expression) |
|
|
|
{ |
|
|
|
base.Context.ResolveType = ResolveExpressType.WhereMultiple; |
|
|
|
int i = 0; |
|
|
|
foreach (var item in expression.Expressions) |
|
|
@ -96,9 +103,14 @@ namespace SqlSugar |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
private void ArraySingle(NewArrayExpression expression) |
|
|
|
{ |
|
|
|
foreach (var item in expression.Expressions) |
|
|
|
{ |
|
|
|
base.Expression = item; |
|
|
|
base.Start(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|