Browse Source

Code optimization

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
967196c4c9
  1. 1
      Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/NewExpressionResolve.cs

1
Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/NewExpressionResolve.cs

@ -13,6 +13,7 @@ namespace SqlSugar
public NewExpressionResolve(ExpressionParameter parameter) : base(parameter)
{
var expression = base.Expression as NewExpression;
Check.Exception(expression.Type == UtilConstants.GuidType, "Not Support new Guid(), Use Guid.New()");
switch (parameter.Context.ResolveType)
{
case ResolveExpressType.WhereSingle:

Loading…
Cancel
Save