Browse Source

Update exp to sql

pull/27/head
sunkaixuan 2 years ago
parent
commit
f81434b5fa
  1. 2
      Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubAnd.cs
  2. 2
      Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubWhere.cs
  3. 2
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubAnd.cs
  4. 2
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubWhere.cs

2
Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubAnd.cs

@ -54,6 +54,8 @@ namespace SqlSugar
if (this.Context.JoinIndex > 0)
{
this.Context.Parameters.AddRange(copyContext.Parameters);
this.Context.Index = copyContext.Index;
this.Context.ParameterIndex = copyContext.ParameterIndex;
}
var regex = @"^AND (\@Const\d+) $";

2
Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubWhere.cs

@ -56,6 +56,8 @@ namespace SqlSugar
if (this.Context.JoinIndex > 0)
{
this.Context.Parameters.AddRange(copyContext.Parameters);
this.Context.Index = copyContext.Index;
this.Context.ParameterIndex = copyContext.ParameterIndex;
}
var regex = @"^WHERE (\@Const\d+) $";

2
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubAnd.cs

@ -54,6 +54,8 @@ namespace SqlSugar
if (this.Context.JoinIndex > 0)
{
this.Context.Parameters.AddRange(copyContext.Parameters);
this.Context.Index = copyContext.Index;
this.Context.ParameterIndex = copyContext.ParameterIndex;
}
var regex = @"^AND (\@Const\d+) $";

2
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubWhere.cs

@ -56,6 +56,8 @@ namespace SqlSugar
if (this.Context.JoinIndex > 0)
{
this.Context.Parameters.AddRange(copyContext.Parameters);
this.Context.Index = copyContext.Index;
this.Context.ParameterIndex = copyContext.ParameterIndex;
}
var regex = @"^WHERE (\@Const\d+) $";

Loading…
Cancel
Save