This is an old suggestion, but I thought I'd mention that if you're able to use the more recent versions of C#, this issue is more or less moot after they added support for raw string literals.
var sqlQuery = @"""
select Col1, Col2
FROM MyTable
WHERE Col3 > 5
""";
This is an old suggestion, but I thought I'd mention that if you're able to use the more recent versions of C#, this issue is more or less moot after they added support for raw string literals.
var sqlQuery = @"""
select Col1, Col2
FROM MyTable
WHERE Col3 > 5
""";