mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 14:15:50 +08:00
Compatible with .NET CORE
This commit is contained in:
@@ -70,10 +70,14 @@ namespace SqlSugar
|
||||
return type.GetTypeInfo().IsValueType;
|
||||
}
|
||||
|
||||
|
||||
public static bool IsEntity(this Type type)
|
||||
{
|
||||
return type.GetTypeInfo().IsClass();
|
||||
}
|
||||
|
||||
public static Type ReflectedType(this MethodInfo method)
|
||||
{
|
||||
return method.ReflectedType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ namespace SqlSugar
|
||||
|
||||
private void CheckMethod(MethodCallExpression expression)
|
||||
{
|
||||
Check.Exception(expression.Method.ReflectedType.FullName != ExpressionConst.SqlFuncFullName,string.Format(ExpressionErrorMessage.MethodError, expression.Method.Name));
|
||||
Check.Exception(expression.Method.ReflectedType().FullName != ExpressionConst.SqlFuncFullName,string.Format(ExpressionErrorMessage.MethodError, expression.Method.Name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user