Update db.Queryable.In

This commit is contained in:
sunkaixuan 2022-12-31 16:51:54 +08:00
parent 2ed8df6ccb
commit 7ca4185210

View File

@ -828,7 +828,7 @@ namespace SqlSugar
var whereIndex = QueryBuilder.WhereIndex;
string parameterName = this.SqlBuilder.SqlParameterKeyWord + "InPara" + whereIndex;
this.AddParameters(new SugarParameter(parameterName, inValues[0]));
this.Where(string.Format(QueryBuilder.EqualTemplate, filed, parameterName));
this.Where(string.Format(QueryBuilder.EqualTemplate,SqlBuilder.GetTranslationColumnName(filed), parameterName));
QueryBuilder.WhereIndex++;
}
else
@ -841,7 +841,7 @@ namespace SqlSugar
values.Add(item.ToString().ToSqlValue());
}
}
this.Where(string.Format(QueryBuilder.InTemplate, filed, string.Join(",", values)));
this.Where(string.Format(QueryBuilder.InTemplate, SqlBuilder.GetTranslationColumnName(filed), string.Join(",", values)));
}
}
else