Update exp to sql

This commit is contained in:
sunkaixuan 2023-11-10 20:45:20 +08:00
parent 0e63022f6c
commit 99cb8dd3ed
2 changed files with 5 additions and 1 deletions

View File

@ -838,6 +838,10 @@ namespace SqlSugar
else else
{ {
result= GetExpressionValue(expression, this.SelectType).GetResultString(); result= GetExpressionValue(expression, this.SelectType).GetResultString();
if (result == null && ExpressionTool.GetMethodName(ExpressionTool.GetLambdaExpressionBody(expression)) == "End")
{
result = GetExpressionValue(expression, ResolveExpressType.FieldSingle).GetResultString();
}
} }
if (result == null&& this.AppendNavInfo?.AppendProperties==null) if (result == null&& this.AppendNavInfo?.AppendProperties==null)
{ {

View File

@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SqlSugarCore</id> <id>SqlSugarCore</id>
<version>5.1.4.115-preview10</version> <version>5.1.4.115-preview22</version>
<authors>sunkaixuan</authors> <authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners> <owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl> <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>