Optimized EntityService

This commit is contained in:
sunkaixuan 2024-04-01 18:36:07 +08:00
parent 1b0b7d8b38
commit ad5cec7501

View File

@ -419,7 +419,8 @@ namespace SqlSugar
}
if (this.Context.CurrentConnectionConfig.ConfigureExternalServices != null && this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityService != null)
{
if (!column.EntityName.ObjToString().StartsWith("<>f__AnonymousType"))
if (!column.EntityName.ObjToString().StartsWith("<>f__AnonymousType")
&&column.PropertyInfo?.ReflectedType!=typeof(DbTableInfo))
{
this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityService(property, column);
}