mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
Property set method not found #132
This commit is contained in:
parent
94e51d1dff
commit
acd406164a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user