Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
c6a23cad58
  1. 2
      SqlSugar/ExpressionsToSql/Common/ExpressionErrorMessage.cs
  2. 2
      SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs

2
SqlSugar/ExpressionsToSql/Common/ExpressionErrorMessage.cs

@ -26,7 +26,7 @@ namespace SqlSugar
{
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)");
}
}
}

2
SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs

@ -257,7 +257,7 @@ namespace SqlSugar
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));
}
}
}

Loading…
Cancel
Save