mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 导航属性配置和Aop冲突的 bug;
This commit is contained in:
		@@ -75,8 +75,7 @@ namespace FreeSql.Internal
 | 
			
		||||
                var setMethod = trytb.Type.GetMethod($"set_{p.Name}");
 | 
			
		||||
                var colattr = common.GetEntityColumnAttribute(entity, p);
 | 
			
		||||
                var tp = common.CodeFirst.GetDbInfo(colattr?.MapType ?? p.PropertyType);
 | 
			
		||||
                if (tp == null && colattr != null) colattr.IsIgnore = true; //无法匹配的属性,认定是导航属性,且自动过滤
 | 
			
		||||
                if (tp == null && colattr == null)
 | 
			
		||||
                if (tp == null && colattr?.IsIgnore != true)
 | 
			
		||||
                {
 | 
			
		||||
                    if (common.CodeFirst.IsLazyLoading)
 | 
			
		||||
                    {
 | 
			
		||||
@@ -88,6 +87,7 @@ namespace FreeSql.Internal
 | 
			
		||||
                    propsNavObjs.Add(p);
 | 
			
		||||
                    continue;
 | 
			
		||||
                }
 | 
			
		||||
                if (tp == null && colattr != null) colattr.IsIgnore = true; //无法匹配的属性,认定是导航属性,且自动过滤
 | 
			
		||||
                if (colattr == null)
 | 
			
		||||
                    colattr = new ColumnAttribute
 | 
			
		||||
                    {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user