mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 20:57:58 +08:00
-
This commit is contained in:
parent
614a45d2e1
commit
59e3ed2d1f
@ -26,7 +26,7 @@ namespace SqlSugar
|
||||
}, (cm, key) =>
|
||||
{
|
||||
EntityInfo result = new EntityInfo();
|
||||
var sugarAttributeInfo = type.GetCustomAttributes(typeof(SugarTable), true).Where(it => it is SugarTable).SingleOrDefault();
|
||||
var sugarAttributeInfo = type.GetTypeInfo().GetCustomAttributes(typeof(SugarTable), true).Where(it => it is SugarTable).SingleOrDefault();
|
||||
if (sugarAttributeInfo.IsValuable())
|
||||
{
|
||||
var sugarTable = (SugarTable)sugarAttributeInfo;
|
||||
|
Loading…
Reference in New Issue
Block a user