mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 19:56:43 +08:00
Code optimization
This commit is contained in:
parent
ed46d2fd14
commit
fa0bd7aaa7
@ -569,6 +569,10 @@ namespace SqlSugar
|
||||
{
|
||||
Check.ExceptionEasy($".Where({childExpression}) no support {rootShortName}.Field, Use .MappingField",$".Where({childExpression})禁止出{rootShortName}.字段 , 你可以使用.MappingField(z=>z.字段,()=>{rootShortName}.字段) 与主表字段进行过滤");
|
||||
}
|
||||
else if (rootShortName.HasValue() && childExpression.ToString().Contains($"({rootShortName}."))
|
||||
{
|
||||
Check.ExceptionEasy($".Where({childExpression}) no support {rootShortName}.Field, Use .MappingField", $".Where({childExpression})禁止出{rootShortName}.字段 , 你可以使用.MappingField(z=>z.字段,()=>{rootShortName}.字段) 与主表字段进行过滤");
|
||||
}
|
||||
}
|
||||
|
||||
private static string GetShortName(Expression expression1)
|
||||
|
Loading…
Reference in New Issue
Block a user