Browse Source

Synchronization code

pull/27/head
sunkaixuan 2 years ago
parent
commit
bc8ac4a0a8
  1. 4
      Src/Asp.NetCore2/SqlSugar/Utilities/CommonExtensions.cs

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

@ -13,6 +13,10 @@ namespace SqlSugar
{ {
return new List<T> { thisValue }; 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) public static IEnumerable<T> WhereIF<T>(this IEnumerable<T> thisValue, bool isOk, Func<T, bool> predicate)
{ {
if (isOk) if (isOk)

Loading…
Cancel
Save