diff --git a/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs b/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs index 50a013e9d..e04255963 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs @@ -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); }