Update UpdateBuilder

This commit is contained in:
sunkaixuan 2019-04-27 11:31:52 +08:00
parent eca28ee970
commit ad64414a75
3 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ namespace SqlSugar
{
var isFirst = whereString == null;
whereString += (isFirst ? null : " AND ");
whereString += Regex.Replace(item,"\\"+this.Builder.SqlTranslationLeft,"T."+ this.Builder.SqlTranslationLeft);
whereString += Regex.Replace(item,"\\"+this.Builder.SqlTranslationLeft,"S."+ this.Builder.SqlTranslationLeft);
}
}
if (PrimaryKeys.HasValue())

View File

@ -71,7 +71,7 @@ namespace SqlSugar
{
var isFirst = whereString == null;
whereString += (isFirst ? null : " AND ");
whereString += Regex.Replace(item, " \\" + this.Builder.SqlTranslationLeft, "T." + this.Builder.SqlTranslationLeft);
whereString += Regex.Replace(item, " \\" + this.Builder.SqlTranslationLeft, "S." + this.Builder.SqlTranslationLeft);
}
}
if (PrimaryKeys.HasValue())