mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	Property set method not found #132
This commit is contained in:
		@@ -251,7 +251,7 @@ namespace FreeSql.Internal
 | 
			
		||||
                        var objval = ReadAnonymous(parent.Childs[b], dr, ref index, notRead);
 | 
			
		||||
                        if (isnull == false && objval == null && parent.Table != null && parent.Table.ColumnsByCs.TryGetValue(parent.Childs[b].CsName, out var trycol) && trycol.Attribute.IsPrimary)
 | 
			
		||||
                            isnull = true;
 | 
			
		||||
                        if (isnull == false)
 | 
			
		||||
                        if (isnull == false && prop.CanWrite)
 | 
			
		||||
                            prop.SetValue(ret, objval, null);
 | 
			
		||||
                    }
 | 
			
		||||
                    return isnull ? null : ret;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user