Parameterized IN clauses with ADO.NET and LINQ Since my article on using parameters for Preventing SQL Injection In ASP.NET, I have had a few emails asking how to do the same with an IN clause expression. In this entry, I explore a couple of ways to do this.
Just in case you don't know, IN() takes a subquery or expression. The expression is a comma-separated list of values, so the following SQL:SELECT * FROM Products WHERE CategoryID IN (1,4,8) will return all Products that have a...
No comments yet, be the first one to post comment.