mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-08 01:10:57 +08:00
- 优化 表达式解析 dArray.Select(p => p.Key).Contains(a.Id);
This commit is contained in:
@@ -1248,6 +1248,12 @@ namespace FreeSql.Internal
|
||||
}
|
||||
}
|
||||
}
|
||||
if (exp3.Method.Name == "Select" && exp3.Method.DeclaringType == typeof(Enumerable) && exp3.Arguments[0].CanDynamicInvoke())
|
||||
{
|
||||
//Where(a => dArray.Select(p => p.Key).Contains(a.Id))
|
||||
return formatSql(Expression.Lambda(exp3).Compile().DynamicInvoke(), tsc.mapType, tsc.mapColumnTmp, tsc.dbParams);
|
||||
}
|
||||
|
||||
if (callType.FullName.StartsWith("FreeSql.ISelectGroupingAggregate`"))
|
||||
{
|
||||
switch (exp3.Method.Name)
|
||||
|
||||
Reference in New Issue
Block a user