- 修复 UseGenerateCommandParameterWithLambda(true) 与 GroupBy 查询不生效 bug;

This commit is contained in:
2881099
2022-07-05 20:39:44 +08:00
parent fb6b539280
commit fe9e108c5b
4 changed files with 101 additions and 6 deletions

View File

@@ -173,7 +173,7 @@ namespace FreeSql.Internal
}
else
{
if (select != null && findIncludeMany != null && select._includeToList.Any() && exp.Type.IsGenericType &&
if (_tables != null && select != null && findIncludeMany != null && select._includeToList.Any() && exp.Type.IsGenericType &&
typeof(IEnumerable).IsAssignableFrom(exp.Type) &&
typeof(ICollection<>).MakeGenericType(exp.Type.GetGenericArguments().FirstOrDefault()).IsAssignableFrom(exp.Type))
{