Browse Source

Update .net core project

pull/20/head
sunkaixuan 2 years ago
parent
commit
1c3606e2cb
  1. 7
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/OneToManyNavgateExpressionN.cs

7
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/OneToManyNavgateExpressionN.cs

@ -160,7 +160,12 @@ namespace SqlSugar
{ {
if (this.whereSql.Contains("." + sqlBuilder.GetTranslationColumnName(it.DbColumnName))) if (this.whereSql.Contains("." + sqlBuilder.GetTranslationColumnName(it.DbColumnName)))
{ {
this.whereSql =Regex.Replace(this.whereSql,@"\w+\."+sqlBuilder.GetTranslationColumnName(it.DbColumnName), var regex = @"\w+\." + sqlBuilder.GetTranslationColumnName(it.DbColumnName)
.Replace(sqlBuilder.SqlTranslationLeft, "\\" + sqlBuilder.SqlTranslationLeft)
.Replace(sqlBuilder.SqlTranslationRight, "\\" + sqlBuilder.SqlTranslationRight)
.Replace("\\\\","\\");
this.whereSql =Regex.Replace(this.whereSql, regex,
lastShortName + "." + sqlBuilder.GetTranslationColumnName(it.DbColumnName)); lastShortName + "." + sqlBuilder.GetTranslationColumnName(it.DbColumnName));
} }
else else

Loading…
Cancel
Save