Browse Source

-

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
30bf373057
  1. 7
      Src/Asp.Net/SqlSugar/ExpressionsToSql/DbMethods/DefaultDbMethod.cs

7
Src/Asp.Net/SqlSugar/ExpressionsToSql/DbMethods/DefaultDbMethod.cs

@ -83,11 +83,14 @@ namespace SqlSugar
{
inValueString = inValues.ToArray().ToJoinSqlInVals();
}
else
if (inValueString.IsNullOrEmpty())
{
return " (1=2) ";
}
return string.Format(" ({0} IN ({1})) ", value, inValueString);
else
{
return string.Format(" ({0} IN ({1})) ", value, inValueString);
}
}
public virtual string Equals(MethodCallExpressionModel model)

Loading…
Cancel
Save