Update Discrimator Join

This commit is contained in:
sunkaixuan
2023-08-14 12:10:10 +08:00
parent fdb1b4d5ed
commit 11bc0099c4
4 changed files with 5 additions and 4 deletions

View File

@@ -528,7 +528,7 @@ namespace SqlSugar
}
public ISugarQueryable<T> Where(string fieldName, string conditionalType, object fieldValue)
{
string parameterName = fieldName+ this.QueryBuilder.WhereIndex;
string parameterName = fieldName.Replace(".","_")+ this.QueryBuilder.WhereIndex;
var whereSql = this.SqlBuilder.GetWhere(fieldName, conditionalType, this.QueryBuilder.WhereIndex);
this.Where(whereSql);
this.QueryBuilder.WhereIndex++;