mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-05 13:17:57 +08:00
Fix:I5ESTN--TableName Bug
This commit is contained in:
parent
eb22820036
commit
02b714e35a
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user