Browse Source

Code optimization

pull/15/head
sunkaixuan 3 years ago
parent
commit
8c5e6da11f
  1. 9
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

9
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

@ -637,7 +637,14 @@ namespace SqlSugar
{
if (item != null)
{
values.Add(item.ToString().ToSqlValue());
if (UtilMethods.IsNumber(item.GetType().Name))
{
values.Add(item.ToString());
}
else
{
values.Add(item.ToString().ToSqlValue());
}
}
}
this.Where(string.Format(QueryBuilder.InTemplate, filed, string.Join(",", values)));

Loading…
Cancel
Save