This commit is contained in:
sunkaixuan
2017-01-08 20:05:41 +08:00
parent cafc76483a
commit 728c352080
18 changed files with 29 additions and 21 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -20,24 +20,4 @@ namespace SqlSugar
return string.Format("\r\n English Message : {0}\r\n Chinese Message : {1}", formatArgs.ToArray());
}
}
internal partial class ErrorMessage
{
internal static string OperatorError
{
get
{
return ExpressionConst.GetThrowMessage("拉姆达解析出错:不支持{0}此种运算符查找!",
"Lambda parsing error: {0} does not support the operator to find!");
}
}
internal static string ExpFileldError
{
get
{
return ExpressionConst.GetThrowMessage("Expression format error, correct format: it=>it.fieldName",
"表达示格式错误,正确格式: it=>it.fieldName");
}
}
}
}

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SqlSugar
{
internal class ExpressionErrorMessage
{
internal static string OperatorError
{
get
{
return ExpressionConst.GetThrowMessage("拉姆达解析出错:不支持{0}此种运算符查找!",
"Lambda parsing error: {0} does not support the operator to find!");
}
}
internal static string ExpFileldError
{
get
{
return ExpressionConst.GetThrowMessage("Expression format error, correct format: it=>it.fieldName",
"表达示格式错误,正确格式: it=>it.fieldName");
}
}
}
}

View File

@@ -41,7 +41,7 @@ namespace SqlSugar
case ExpressionType.MultiplyChecked:
return "*";
default:
throw new NotSupportedException(string.Format(ErrorMessage.OperatorError, expressiontype.ToString()));
throw new NotSupportedException(string.Format(ExpressionErrorMessage.OperatorError, expressiontype.ToString()));
}
}
}

View File

@@ -98,6 +98,7 @@
<Compile Include="Entities\DbColumnInfo.cs" />
<Compile Include="Entities\DbTableInfo.cs" />
<Compile Include="ExpressionsToSql\BinaryExpressionInfo.cs" />
<Compile Include="ExpressionsToSql\ExpressionErrorMessage.cs" />
<Compile Include="ExpressionsToSql\SugarParameter.cs" />
<Compile Include="ExpressionsToSql\ExpressionParameter.cs" />
<Compile Include="Entities\JoinQueryInfo.cs" />

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.