Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
2b14283fd1
  1. 12
      SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs

12
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);
}
}
}

Loading…
Cancel
Save