mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Update exp to sql
This commit is contained in:
@@ -262,6 +262,16 @@ namespace SqlSugar
|
|||||||
var value = GetNewExpressionValue(item);
|
var value = GetNewExpressionValue(item);
|
||||||
parameter.Context.Result.Append($" {value} AS {asName} ");
|
parameter.Context.Result.Append($" {value} AS {asName} ");
|
||||||
}
|
}
|
||||||
|
else if (item is ConditionalExpression)
|
||||||
|
{
|
||||||
|
var value = GetNewExpressionValue(item);
|
||||||
|
parameter.Context.Result.Append($" {value} AS {asName} ");
|
||||||
|
}
|
||||||
|
else if (ExpressionTool.GetMethodName(item)==nameof(SqlFunc.IIF))
|
||||||
|
{
|
||||||
|
var value = GetNewExpressionValue(item);
|
||||||
|
parameter.Context.Result.Append($" {value} AS {asName} ");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
asName = GetAsNameResolveAnObject(parameter, item, asName, isSameType);
|
asName = GetAsNameResolveAnObject(parameter, item, asName, isSameType);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.1.4.183-preview02</version>
|
<version>5.1.4.183-preview06</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>
|
||||||
|
|||||||
Reference in New Issue
Block a user