From dbc2cb2f400922f270bf99bbc6d4c218e00ba847 Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@qq.com> Date: Sun, 24 Aug 2025 00:02:22 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E8=B0=83=E6=95=B4=20ManyToMany=20=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E5=AE=9A=E9=9D=9E=E8=A6=81=E5=8F=8C=E8=BE=B9=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FreeSql/Internal/UtilsExpressionTree.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/FreeSql/Internal/UtilsExpressionTree.cs b/FreeSql/Internal/UtilsExpressionTree.cs index 870282baa..4fdb77330 100644 --- a/FreeSql/Internal/UtilsExpressionTree.cs +++ b/FreeSql/Internal/UtilsExpressionTree.cs @@ -919,10 +919,11 @@ namespace FreeSql.Internal if (pnvAttr?.ManyToMany != null) { - isManyToMany = propElementType != trytb.Type && - tbref.Properties.Where(z => (z.Value.PropertyType.GetGenericArguments().FirstOrDefault() == trytb.Type || z.Value.PropertyType.GetElementType() == trytb.Type) && - common.GetEntityNavigateAttribute(tbref.Type, z.Value)?.ManyToMany == pnvAttr.ManyToMany && - typeof(IEnumerable).IsAssignableFrom(z.Value.PropertyType)).Any(); + isManyToMany = propElementType != trytb.Type + // && tbref.Properties.Where(z => (z.Value.PropertyType.GetGenericArguments().FirstOrDefault() == trytb.Type || z.Value.PropertyType.GetElementType() == trytb.Type) && + // common.GetEntityNavigateAttribute(tbref.Type, z.Value)?.ManyToMany == pnvAttr.ManyToMany && + // typeof(IEnumerable).IsAssignableFrom(z.Value.PropertyType)).Any() + ; if (isManyToMany == false) {