Browse Source

Code optimization

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

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

@ -636,10 +636,17 @@ namespace SqlSugar
foreach (var item in inValues)
{
if (item != null)
{
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