Put simply... in plain SQL I would do this:
SELECT * FROM [Products] WHERE [Description] LIKE '%[0-9]%'
In Linq to Entities I do this:
Products.Where(p => p.Description.Contains("[0-9]"))
But I end up with this:
-- Region Parameters
DECLARE @p0 NVarChar(8) SET @p0 = '%~[0-9]%'
-- EndRegion
SELECT ...
FROM [Products] AS [t0]
WHERE [t0].[Description] LIKE @p0 ESCAPE '~'
Which escapes my attempt at SQL regex.
Any ideas how to circumvent this?
Edit
I should add that I am using the Entity Framework with it's SQL Provider (is that right?) and I am attempting to have the work done on an IQueryable i.e. not have to bring all the rows into .NET before I can run the Regex