diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs index d2e1e2264..1c679b13f 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs @@ -31,6 +31,10 @@ namespace SqlSugar { return GetEntityInfo(type); } + else if (!this.Context.Root.IsAnyConnection(attr.configId)) + { + return GetEntityInfo(type); + } else { return this.Context.Root.GetConnection(attr.configId).EntityMaintenance.GetEntityInfo(type);