mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Update GetEntityInfoWithAttr
This commit is contained in:
@@ -411,7 +411,7 @@ namespace SqlSugar
|
|||||||
Type type = item.GetType();
|
Type type = item.GetType();
|
||||||
PropertyInfo field = type.GetProperty("exp", flag);
|
PropertyInfo field = type.GetProperty("exp", flag);
|
||||||
Type ChildType = item.type;
|
Type ChildType = item.type;
|
||||||
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(ChildType);
|
var entityInfo = this.Context.EntityMaintenance.GetEntityInfoWithAttr(ChildType);
|
||||||
var exp = field.GetValue(item, null) as Expression;
|
var exp = field.GetValue(item, null) as Expression;
|
||||||
var isMain = ChildType == this.EntityType||(ChildType.IsInterface&& this.EntityType.GetInterfaces().Any(it => it == ChildType));
|
var isMain = ChildType == this.EntityType||(ChildType.IsInterface&& this.EntityType.GetInterfaces().Any(it => it == ChildType));
|
||||||
var isSingle = IsSingle();
|
var isSingle = IsSingle();
|
||||||
|
Reference in New Issue
Block a user