This commit is contained in:
sunkaixuan 2022-11-25 12:28:10 +08:00
parent 7630ac15c4
commit 0d99c679fb

View File

@ -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)