mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-04 04:37:58 +08:00
Code optimization
This commit is contained in:
parent
3059c25ef2
commit
c21683781d
@ -409,7 +409,7 @@ namespace SqlSugar
|
|||||||
var whereIndex = QueryBuilder.WhereIndex;
|
var whereIndex = QueryBuilder.WhereIndex;
|
||||||
string parameterName = this.SqlBuilder.SqlParameterKeyWord + "InPara" + whereIndex;
|
string parameterName = this.SqlBuilder.SqlParameterKeyWord + "InPara" + whereIndex;
|
||||||
this.AddParameters(new SugarParameter(parameterName, inValues[0]));
|
this.AddParameters(new SugarParameter(parameterName, inValues[0]));
|
||||||
this.Where(string.Format(QueryBuilder.InTemplate, filed, parameterName));
|
this.Where(string.Format(QueryBuilder.EqualTemplate, filed, parameterName));
|
||||||
QueryBuilder.WhereIndex++;
|
QueryBuilder.WhereIndex++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -207,6 +207,13 @@ namespace SqlSugar
|
|||||||
return "{0} IN ({1}) ";
|
return "{0} IN ({1}) ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public virtual string EqualTemplate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return "{0} = {1} ";
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Common Methods
|
#region Common Methods
|
||||||
|
Loading…
Reference in New Issue
Block a user