From 2b14283fd11cd50e77bbc335414e9d221374991d Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 16 Jan 2017 00:22:56 +0800 Subject: [PATCH] - --- .../ResolveItems/MemberInitExpressionResolve.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs b/SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs index 989d4ab93..2d1d1c60f 100644 --- a/SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs +++ b/SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs @@ -58,8 +58,16 @@ namespace SqlSugar base.Expression = memberAssignment.Expression; base.Start(); } - else { - Check.ThrowNotSupportedException(item.GetType().Name); + else if (item is BinaryExpression) + { + base.Expression = item; + parameter.CommonTempData = "simple"; + base.Start(); + parameter.CommonTempData = null; + } + else + { + Check.ThrowNotSupportedException(item.GetType().Name); } } }