This commit is contained in:
sunkaixuan 2017-07-01 13:18:28 +08:00
parent 614a45d2e1
commit 59e3ed2d1f

View File

@ -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;