Update Core

This commit is contained in:
sunkaixuan
2022-05-10 13:19:33 +08:00
parent f7dda4401d
commit 61b895b896
4 changed files with 79 additions and 25 deletions

View File

@@ -472,6 +472,15 @@ namespace SqlSugar
{
asName = GetAsName(item, shortName, property);
}
else if (comumnInfo!=null&&this.Context.SugarContext != null&&this.Context.SugarContext.Context != null)
{
var entityInfo=this.Context.SugarContext.Context.EntityMaintenance.GetEntityInfo(item.Type);
var entityColumn = entityInfo.Columns.FirstOrDefault(it => it.PropertyName == property.Name);
if (entityColumn != null && entityColumn.IsJson)
{
asName = GetAsName(item, shortName, property);
}
}
}
else if (isSameType)
{