mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 19:56:43 +08:00
Synchronization code
This commit is contained in:
parent
dbabdd2f34
commit
ca50e84b34
@ -614,7 +614,7 @@ namespace SqlSugar
|
||||
{
|
||||
var value = item.Value;
|
||||
var expressionTree = new ExpressionTreeVisitor().GetExpressions(value);
|
||||
var isSqlMethod = ExpressionTool.GetMethodName(expressionTree.Last()).IsIn("Any", "Count");
|
||||
var isSqlMethod = expressionTree.Any()&&ExpressionTool.GetMethodName(expressionTree.Last()).IsIn("Any", "Count");
|
||||
if (expressionTree.Any()&&isSqlMethod==false)
|
||||
{
|
||||
|
||||
|
@ -41,6 +41,10 @@ namespace SqlSugar
|
||||
return GetMemberBindingItemList((caseExp as MemberInitExpression).Bindings);
|
||||
}
|
||||
var exp= caseExp as NewExpression;
|
||||
if (exp == null)
|
||||
{
|
||||
Check.ExceptionEasy("Use Select(it=>new class(){})", "导航查询请使用Select(it=>new class(){})");
|
||||
}
|
||||
var dict = new Dictionary<string, Expression>();
|
||||
|
||||
for (int i = 0; i < exp.Arguments.Count; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user