Browse Source

-

pull/27/head
sunkaixuan 2 years ago
parent
commit
0d99c679fb
  1. 4
      Src/Asp.Net/SqlSugar/Utilities/CommonExtensions.cs

4
Src/Asp.Net/SqlSugar/Utilities/CommonExtensions.cs

@ -13,6 +13,10 @@ namespace SqlSugar
{
return new List<T> { thisValue };
}
public static List<T> ToList<T>(this IEnumerable<T> thisValue, Func<T, T> action) where T : class, new()
{
return thisValue.ToList();
}
public static IEnumerable<T> WhereIF<T>(this IEnumerable<T> thisValue, bool isOk, Func<T, bool> predicate)
{
if (isOk)

Loading…
Cancel
Save