mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- 修复 IncludeMany 只填充子属性中双向关系的 ManyToOne 对象值;
This commit is contained in:
		@@ -637,7 +637,7 @@ namespace FreeSql.Internal.CommonProvider
 | 
			
		||||
                        if (tr2ref == null) continue;
 | 
			
		||||
                        if (tr2ref.RefType != TableRefType.ManyToOne) continue;
 | 
			
		||||
                        if (tr2ref.RefEntityType != tb.Type) continue;
 | 
			
		||||
                        if (string.Join(",", tr2ref.Columns.Select(a => a.CsName).OrderBy(a => a)) != string.Join(",", tbref.RefColumns.Select(a => a.CsName).OrderBy(a => a))) continue; //防止把 ManyToOne 多个相同类型的导航属性值都填充了
 | 
			
		||||
                        if (string.Join(",", tr2ref.Columns.Select(a => a.CsName).OrderBy(a => a)) != string.Join(",", tbref.RefColumns.Select(a => a.CsName).OrderBy(a => a))) continue; //- 修复 IncludeMany 只填充子属性中双向关系的 ManyToOne 对象值;防止把 ManyToOne 多个相同类型的导航属性值都填充了
 | 
			
		||||
                        parentNavs.Add(navProp.Key);
 | 
			
		||||
                    }
 | 
			
		||||
                    foreach (var nav in subList)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user