Skip to content

Commit

Permalink
[fix]TableItem.FindByName 时没有查询 FormatedName 字段,导致以下划线命名的字段没有正确映射到实体。
Browse files Browse the repository at this point in the history
  • Loading branch information
Soar360 committed Sep 23, 2024
1 parent 283fc52 commit 24dbcca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions XCode/Configuration/TableItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,11 @@ public void Merge(IDataTable table)
if (item.Name.EqualIgnoreCase(name)) return _all[name] = item as Field;
}

foreach (var item in AllFields)
{
if (item.FormatedName.EqualIgnoreCase(name)) return _all[name] = item as Field;
}

return _all[name] = null;
}

Expand Down

0 comments on commit 24dbcca

Please sign in to comment.