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