mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
-
This commit is contained in:
parent
9d95d62a25
commit
a3326429c4
@ -50,7 +50,16 @@ namespace SqlSugar
|
||||
get
|
||||
{
|
||||
if (_WhereInfos == null || _WhereInfos.Count == 0) return null;
|
||||
return "";
|
||||
string whereString = null;
|
||||
int i = 0;
|
||||
foreach (var item in _WhereInfos)
|
||||
{
|
||||
var isFirst = i == 0;
|
||||
whereString += isFirst ? "WHERE " : "AND ";
|
||||
whereString +=(item + PubConst.Space);
|
||||
++i;
|
||||
}
|
||||
return whereString;
|
||||
}
|
||||
}
|
||||
|
||||
@ -60,7 +69,7 @@ namespace SqlSugar
|
||||
|
||||
public string ToSqlString()
|
||||
{
|
||||
return string.Format(SqlTemplate, GetTableNameString,GetWhereString);
|
||||
return string.Format(SqlTemplate, GetTableNameString, GetWhereString);
|
||||
}
|
||||
public virtual ExpressionResult GetExpressionValue(Expression expression, ResolveExpressType resolveType)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user