mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Update exp to sql
This commit is contained in:
@@ -242,6 +242,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
resolveExpress.PgSqlIsAutoToLower = true;
|
resolveExpress.PgSqlIsAutoToLower = true;
|
||||||
}
|
}
|
||||||
|
resolveExpress.SugarContext = new ExpressionOutParameter() { Context = this.Context };
|
||||||
resolveExpress.RootExpression = expression;
|
resolveExpress.RootExpression = expression;
|
||||||
resolveExpress.JoinQueryInfos = Builder.QueryBuilder.JoinQueryInfos;
|
resolveExpress.JoinQueryInfos = Builder.QueryBuilder.JoinQueryInfos;
|
||||||
resolveExpress.IsSingle = IsSingle()&& resolveType!= ResolveExpressType.WhereMultiple;
|
resolveExpress.IsSingle = IsSingle()&& resolveType!= ResolveExpressType.WhereMultiple;
|
||||||
|
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SqlSugar
|
||||||
|
{
|
||||||
|
public class ExpressionOutParameter
|
||||||
|
{
|
||||||
|
public SqlSugarProvider Context { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -19,6 +19,7 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Properties
|
#region Properties
|
||||||
|
public ExpressionOutParameter SugarContext { get; set; }
|
||||||
public IDbMethods DbMehtods
|
public IDbMethods DbMehtods
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@@ -28,6 +28,7 @@ namespace SqlSugar
|
|||||||
Action RefreshMapping { get; set; }
|
Action RefreshMapping { get; set; }
|
||||||
bool PgSqlIsAutoToLower { get; set; }
|
bool PgSqlIsAutoToLower { get; set; }
|
||||||
Expression RootExpression { get; set; }
|
Expression RootExpression { get; set; }
|
||||||
|
ExpressionOutParameter SugarContext { get; set; }
|
||||||
bool? TableEnumIsString { get; set; }
|
bool? TableEnumIsString { get; set; }
|
||||||
|
|
||||||
string GetAsString(string fieldName, string fieldValue);
|
string GetAsString(string fieldName, string fieldValue);
|
||||||
|
@@ -104,6 +104,7 @@
|
|||||||
<Compile Include="Enum\NavigatType.cs" />
|
<Compile Include="Enum\NavigatType.cs" />
|
||||||
<Compile Include="Enum\SugarActionType.cs" />
|
<Compile Include="Enum\SugarActionType.cs" />
|
||||||
<Compile Include="Entities\SugarConnection.cs" />
|
<Compile Include="Entities\SugarConnection.cs" />
|
||||||
|
<Compile Include="ExpressionsToSql\Common\ExpressionOutParameter.cs" />
|
||||||
<Compile Include="ExpressionsToSql\ResolveItems\NavgateExpression.cs" />
|
<Compile Include="ExpressionsToSql\ResolveItems\NavgateExpression.cs" />
|
||||||
<Compile Include="ExpressionsToSql\Subquery\SubTemplate.cs" />
|
<Compile Include="ExpressionsToSql\Subquery\SubTemplate.cs" />
|
||||||
<Compile Include="ExpressionsToSql\Subquery\SubqueryableN.cs" />
|
<Compile Include="ExpressionsToSql\Subquery\SubqueryableN.cs" />
|
||||||
|
Reference in New Issue
Block a user