mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update exp to sql
This commit is contained in:
@@ -38,7 +38,8 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
this.Context.SugarContext.QueryBuilder.QueryableFormats = new List<QueryableFormat>();
|
this.Context.SugarContext.QueryBuilder.QueryableFormats = new List<QueryableFormat>();
|
||||||
}
|
}
|
||||||
this.Context.SugarContext.QueryBuilder.QueryableFormats.Add(new QueryableFormat() {
|
this.Context.SugarContext.QueryBuilder.QueryableFormats.Add(new QueryableFormat()
|
||||||
|
{
|
||||||
Format = format + "",
|
Format = format + "",
|
||||||
PropertyName = asName,
|
PropertyName = asName,
|
||||||
Type = type,
|
Type = type,
|
||||||
@@ -83,6 +84,12 @@ namespace SqlSugar
|
|||||||
this.Context.SingleTableNameSubqueryShortName = ps.FirstOrDefault().Name;
|
this.Context.SingleTableNameSubqueryShortName = ps.FirstOrDefault().Name;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (item is MethodCallExpression&&ExpressionTool.IsVariable(item))
|
||||||
|
{
|
||||||
|
var p = GetNewExpressionValue(item);
|
||||||
|
parameter.Context.Result.Append(this.Context.GetAsString2(asName, p));
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.Expression = item;
|
this.Expression = item;
|
||||||
var negateString = string.Empty;
|
var negateString = string.Empty;
|
||||||
if (item.NodeType == ExpressionType.Negate)
|
if (item.NodeType == ExpressionType.Negate)
|
||||||
|
Reference in New Issue
Block a user