From 02b714e35a3926e58ce4bdb600518a9ca49b04d6 Mon Sep 17 00:00:00 2001 From: MrXhh <2791341417@qq.com> Date: Thu, 30 Jun 2022 09:59:15 +0800 Subject: [PATCH] Fix:I5ESTN--TableName Bug --- .../SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs | 2 +- .../SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs b/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs index 62807571c..d216e311d 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs @@ -28,7 +28,7 @@ namespace SqlSugar public EntityInfo GetEntityInfoNoCache(Type type) { EntityInfo result = new EntityInfo(); - var sugarAttributeInfo = type.GetTypeInfo().GetCustomAttributes(typeof(SugarTable), true).Where(it => it is SugarTable).SingleOrDefault(); + var sugarAttributeInfo = type.GetTypeInfo().GetCustomAttributes(typeof(SugarTable), false).Where(it => it is SugarTable).SingleOrDefault(); if (sugarAttributeInfo.HasValue()) { var sugarTable = (SugarTable)sugarAttributeInfo; diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs index 62807571c..d216e311d 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs @@ -28,7 +28,7 @@ namespace SqlSugar public EntityInfo GetEntityInfoNoCache(Type type) { EntityInfo result = new EntityInfo(); - var sugarAttributeInfo = type.GetTypeInfo().GetCustomAttributes(typeof(SugarTable), true).Where(it => it is SugarTable).SingleOrDefault(); + var sugarAttributeInfo = type.GetTypeInfo().GetCustomAttributes(typeof(SugarTable), false).Where(it => it is SugarTable).SingleOrDefault(); if (sugarAttributeInfo.HasValue()) { var sugarTable = (SugarTable)sugarAttributeInfo;