mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update exp to sql
This commit is contained in:
parent
ab4bf97cbd
commit
55ddd3d199
@ -56,7 +56,7 @@ namespace SqlSugar
|
|||||||
if (field != null)
|
if (field != null)
|
||||||
{
|
{
|
||||||
Type ChildType = item.GetType().GetProperty("type", flag).GetValue(item, null) as Type;
|
Type ChildType = item.GetType().GetProperty("type", flag).GetValue(item, null) as Type;
|
||||||
if (ChildType == type)
|
if (ChildType == type|| ChildType.IsInterface)
|
||||||
{
|
{
|
||||||
var entityInfo = db.EntityMaintenance.GetEntityInfo(ChildType);
|
var entityInfo = db.EntityMaintenance.GetEntityInfo(ChildType);
|
||||||
var exp = field.GetValue(item, null) as Expression;
|
var exp = field.GetValue(item, null) as Expression;
|
||||||
|
Loading…
Reference in New Issue
Block a user