Correct way to escape values in LIKE pattern matches

When building raw SQL queries I’ll use SqlFmt to inject parameters:

"SELECT * FROM mytable WHERE mycolumn={0}".SqlFmt(myValue);

Is there a way to do something similar when you want to use a value as part of a pattern match? Something like this (which doesn’t work because the value gets double-quoted):

"SELECT * FROM mytable WHERE mycolumn ILIKE '{0}%'".SqlFmt(myValue);

I would like to use potentially dangerous user-provided values as search terms in a safe way.

What about?

"SELECT * FROM mytable WHERE mycolumn ILIKE {0}".SqlFmt(myValue + "%");

Oh yeah, duh. For some reason I was thinking that SqlFmt stripped or escaped the metacharacters but of course it wouldn’t do that.