From 18d610cffb0e753e7f768b5136b51ca7415314ec Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@qq.com> Date: Wed, 27 Sep 2023 21:55:55 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E7=94=BB=E8=9B=87=E6=B7=BB=E4=B8=8B?= =?UTF-8?q?=E8=B6=B3=20#1627?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FreeSql/Internal/UtilsExpressionTree.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/FreeSql/Internal/UtilsExpressionTree.cs b/FreeSql/Internal/UtilsExpressionTree.cs index 03155a2e..572dcc4a 100644 --- a/FreeSql/Internal/UtilsExpressionTree.cs +++ b/FreeSql/Internal/UtilsExpressionTree.cs @@ -24,17 +24,7 @@ namespace FreeSql.Internal /// public static Func>> ChacheTableEntityFactory = null; private static ConcurrentDictionary> __cacheGetTableByEntity = new ConcurrentDictionary>(); - public static ConcurrentDictionary> _cacheGetTableByEntity - { - get - { - if (ChacheTableEntityFactory != null) - { - return ChacheTableEntityFactory.Invoke(); - } - return __cacheGetTableByEntity; - } - } + public static ConcurrentDictionary> _cacheGetTableByEntity => ChacheTableEntityFactory?.Invoke() ?? __cacheGetTableByEntity; internal static void RemoveTableByEntity(Type entity, CommonUtils common) { if (entity.IsAnonymousType() ||