mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update exp to sql
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user