This commit is contained in:
sunkaixuan
2017-06-14 01:31:33 +08:00
parent 73d62c1edc
commit c6a23cad58
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ namespace SqlSugar
{ {
get get
{ {
return ExpressionConst.GetThrowMessage("Expression parsing does not support the current function. There are many functions available in the SqlFunc class, for example, it=>SqlFunc.HasValue(it.Id)", "拉姆达解析不支持当前函数SqlFunc这个类里面有大量函数可用例如 it=>SqlFunc.HasValue(it.Id)"); return ExpressionConst.GetThrowMessage("Expression parsing does not support the current function {0}. There are many functions available in the SqlFunc class, for example, it=>SqlFunc.HasValue(it.Id)", "拉姆达解析不支持当前函数{0}SqlFunc这个类里面有大量函数可用,也许有你想要的,例如 it=>SqlFunc.HasValue(it.Id)");
} }
} }
} }

View File

@@ -257,7 +257,7 @@ namespace SqlSugar
private void CheckMethod(MethodCallExpression expression) private void CheckMethod(MethodCallExpression expression)
{ {
Check.Exception(expression.Method.ReflectedType.FullName != ExpressionConst.SqlFuncFullName,expression.Method.Name+ " no support." + ExpressionErrorMessage.MethodError); Check.Exception(expression.Method.ReflectedType.FullName != ExpressionConst.SqlFuncFullName,string.Format(ExpressionErrorMessage.MethodError, expression.Method.Name));
} }
} }
} }