If you're using an ORM then you don't worry about creating the prepared statement or SQL string yourself, so the entire issue is moot (See GP post).
You still have to write your SQL statements, and in your example you'd still be able to refer to your array by name:
select SomethingID where AnotherThing in @yourNamedArrayParameter
More here: https://github.com/StackExchange/Dapper#list-supportIf you're not using Dapper just use a user-defined table type to hold your data and join on it instead of using WHERE IN.