Skip to content

WhereIn converting int32 values to question marks??? #659

Discussion options

You must be logged in to vote

I believe I found the cause. The query was paramtizing all the values being used in the where clauses, so looking at the CompiledQuery.SQL you can see those where clauses as WHERE [A].[StatusID] IN (@p0, @p1)

I am building this query entirely free of outside user input so I don't have to fear injection concerns, so I can work around this by replacing the params with their values in the resulting SQL string. If there isn't a way to turn off that parameterization that would be a nice feature to add.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ahmad-moussawi
Comment options

Answer selected by the-real-chris-kin
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