Browse Source

Optimization code

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
e41dab0656
  1. 2
      Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionTool.cs

2
Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionTool.cs

@ -41,6 +41,8 @@ namespace SqlSugar
case ExpressionType.Multiply:
case ExpressionType.MultiplyChecked:
return "*";
case ExpressionType.Coalesce:
throw new Exception("Expression no support ?? ,Use SqlFunc.IsNull");
default:
Check.ThrowNotSupportedException(string.Format(ErrorMessage.OperatorError, expressiontype.ToString()));
return null;

Loading…
Cancel
Save