My LINQ query has a piece like
where dataContext.MyTable.Any(r => $"%{r.Name}%" == name)
which is causing an exception
"Method 'System.String Format(System.String, System.Object)' has no supported translation to SQL
Possible to do what I'm trying to do or will I have to resort to writing raw SQL?
$"%{name}%"to a variable outside of the query and use it inside.