mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
- 修复 ToList(a => new Dto {}) 这种情况按字段名匹配r问题,应该按属性名;#208
This commit is contained in:
parent
aaf05c5e9b
commit
78ba778446
@ -140,7 +140,7 @@ namespace FreeSql.Internal
|
|||||||
{
|
{
|
||||||
foreach (var dtTb in _tables)
|
foreach (var dtTb in _tables)
|
||||||
{
|
{
|
||||||
if (dtTb.Table.Columns.TryGetValue(dtoProp.Name, out var trydtocol) == false) continue;
|
if (dtTb.Table.ColumnsByCs.TryGetValue(dtoProp.Name, out var trydtocol) == false) continue;
|
||||||
if (trydtocol.Attribute.IsIgnore == true) continue;
|
if (trydtocol.Attribute.IsIgnore == true) continue;
|
||||||
|
|
||||||
var child = new ReadAnonymousTypeInfo
|
var child = new ReadAnonymousTypeInfo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user