mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 02:35:04 +08:00
-
This commit is contained in:
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.
Binary file not shown.
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
27
SqlSugar/ExpressionsToSql/ExpressionErrorMessage.cs
Normal file
27
SqlSugar/ExpressionsToSql/ExpressionErrorMessage.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user