This commit is contained in:
sunkaixuan 2017-07-01 13:22:24 +08:00
parent 59e3ed2d1f
commit c8067b9c90
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ namespace SqlSugar
public static bool IsClass(this Type thisValue)
{
return thisValue != StringType && thisValue.IsClass;
return thisValue != StringType && thisValue.IsEntity();
}
}
}

View File

@ -72,7 +72,7 @@ namespace SqlSugar
public static bool IsEntity(this Type type)
{
return type.GetTypeInfo().IsClass();
return type.GetTypeInfo().IsClass;
}
public static Type ReflectedType(this MethodInfo method)