Our team (and many other teams) use SQL queries in C# source code. We use verbatim string literals (prefixed with the @ symbol) for writing inline SQL queries. Normally, we use StyleCop in order to ...
It is common to have SQL in string literals (e.g. in Python strings) which are then passed to a library to query a database. Currently SQL within string literals are treated the same as other strings.