From 0d99c679fbcffab76fcc6bee0c9d3441eb65f5fa Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 25 Nov 2022 12:28:10 +0800 Subject: [PATCH] - --- Src/Asp.Net/SqlSugar/Utilities/CommonExtensions.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Utilities/CommonExtensions.cs b/Src/Asp.Net/SqlSugar/Utilities/CommonExtensions.cs index c6bfeb491..c655626b6 100644 --- a/Src/Asp.Net/SqlSugar/Utilities/CommonExtensions.cs +++ b/Src/Asp.Net/SqlSugar/Utilities/CommonExtensions.cs @@ -13,6 +13,10 @@ namespace SqlSugar { return new List { thisValue }; } + public static List ToList(this IEnumerable thisValue, Func action) where T : class, new() + { + return thisValue.ToList(); + } public static IEnumerable WhereIF(this IEnumerable thisValue, bool isOk, Func predicate) { if (isOk)