mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
-
This commit is contained in:
parent
7630ac15c4
commit
0d99c679fb
@ -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…
Reference in New Issue
Block a user