mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update exp to sql
This commit is contained in:
parent
1d3bfdadfd
commit
a8eb9a545f
@ -114,6 +114,19 @@ namespace SqlSugar
|
||||
throw new NotSupportedException("Not Supported " + item.ToString() + " " + ex.Message);
|
||||
}
|
||||
}
|
||||
else if (item is NewExpression)
|
||||
{
|
||||
try
|
||||
{
|
||||
var value = ExpressionTool.DynamicInvoke(item);
|
||||
var parameterName = AppendParameter(value);
|
||||
parameter.Context.Result.Append(base.Context.GetEqString(memberName, parameterName));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new NotSupportedException("Not Supported " + item.ToString() + " " + ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user