Skip to content

Commit

Permalink
- 修复 ToList(a => new Dto {}) 这种情况按字段名匹配r问题,应该按属性名;#208
Browse files Browse the repository at this point in the history
  • Loading branch information
28810 authored and 28810 committed Feb 12, 2020
1 parent aaf05c5 commit 78ba778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FreeSql/Internal/CommonExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public bool ReadAnonymousField(List<SelectTableInfo> _tables, StringBuilder fiel
{
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;

var child = new ReadAnonymousTypeInfo
Expand Down

0 comments on commit 78ba778

Please sign in to comment.