mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 19:04:58 +08:00
Merge branch 'master' of gitee.com:dotnetchina/SqlSugar
This commit is contained in:
@@ -28,7 +28,7 @@ namespace SqlSugar
|
|||||||
public EntityInfo GetEntityInfoNoCache(Type type)
|
public EntityInfo GetEntityInfoNoCache(Type type)
|
||||||
{
|
{
|
||||||
EntityInfo result = new EntityInfo();
|
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())
|
if (sugarAttributeInfo.HasValue())
|
||||||
{
|
{
|
||||||
var sugarTable = (SugarTable)sugarAttributeInfo;
|
var sugarTable = (SugarTable)sugarAttributeInfo;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace SqlSugar
|
|||||||
public EntityInfo GetEntityInfoNoCache(Type type)
|
public EntityInfo GetEntityInfoNoCache(Type type)
|
||||||
{
|
{
|
||||||
EntityInfo result = new EntityInfo();
|
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())
|
if (sugarAttributeInfo.HasValue())
|
||||||
{
|
{
|
||||||
var sugarTable = (SugarTable)sugarAttributeInfo;
|
var sugarTable = (SugarTable)sugarAttributeInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user