Update entity aop

This commit is contained in:
sunkaixuan 2023-01-22 15:25:47 +08:00
parent e7eba6ecd3
commit c2ac2bc0c4

View File

@ -334,9 +334,12 @@ namespace SqlSugar
column.IsIgnore = true;
}
if (this.Context.CurrentConnectionConfig.ConfigureExternalServices != null && this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityService != null)
{
if (!column.EntityName.ObjToString().StartsWith("<>f__AnonymousType"))
{
this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityService(property, column);
}
}
if (column.PropertyInfo.DeclaringType != null
&& column.PropertyInfo.DeclaringType != result.Type
&&result.Columns.Any(x=>x.PropertyName==column.PropertyName))