Browse Source

Update exp to sql

pull/8/head
sunkaixuna 3 years ago
parent
commit
0574946b7f
  1. 3
      Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubAnd.cs
  2. 3
      Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/Items/SubWhere.cs

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

@ -55,7 +55,8 @@ namespace SqlSugar
}
if (Regex.IsMatch(result, regex))
{
result = "AND " + GetValue(result, regex);
var value = GetValue(result, regex);
result = "AND " + value;
return result;
}

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

@ -55,7 +55,8 @@ namespace SqlSugar
}
if (Regex.IsMatch(result, regex))
{
result = "WHERE " + GetValue(result, regex);
var value = GetValue(result, regex);
result = "WHERE " + value;
return result;
}

Loading…
Cancel
Save