- 优化 实体类重写属性 new 如果类型与基类不一致,无法使用的问题;

This commit is contained in:
28810
2019-11-10 12:18:16 +08:00
parent 5ce037d316
commit 8a9a50ecb7
8 changed files with 48 additions and 20 deletions

View File

@ -12,7 +12,7 @@ namespace FreeSql.DataAnnotations
public TableFluent(Type entityType, TableAttribute table)
{
_entityType = entityType;
_properties = _entityType.GetProperties().ToDictionary(a => a.Name, a => a, StringComparer.CurrentCultureIgnoreCase);
_properties = _entityType.GetPropertiesDictIgnoreCase();
_table = table;
}