Skip to content

Unable to add a parameter to a SQLCriterion #2840

Answered by bahusoid
RobWalker asked this question in Q&A
Discussion options

You must be logged in to vote

SqlString is not properly created. You need to use new SQLCriterion(SqlString.Parse(filter_sql), ... to properly detect parameters in string. Or better use Expression.Sql(filter_sql, ... methods which hide such implementation detail.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RobWalker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2839 on June 29, 2021 05:51.