What is the correct syntax for this query?
var l=db.Fetch<article>("SELECT * FROM articles WHERE title LIKE '%@0%'", 'something');
Or should I use CHARINDEX
?
May be
var l=db.Fetch<article>("SELECT * FROM articles WHERE title LIKE @0", "%something%");