From 6ec6b17ffc30dec9e3f394df8a278868b196b1b9 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 1 Jun 2019 15:30:59 +0800 Subject: [PATCH] Update exp to sql --- .../ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs index a737b7e24..a0744c728 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs @@ -118,6 +118,7 @@ namespace SqlSugar string parameterName = this.Context.SqlParameterKeyWord + ExpressionConst.Const + this.Context.ParameterIndex; parameter.Context.Result.Append(base.Context.GetEqString(memberName, parameterName)); this.Context.Parameters.Add(new SugarParameter(parameterName, parameter.CommonTempData)); + parameter.CommonTempData = null; this.Context.ParameterIndex++; } else if (item is MemberExpression)