I am slowly porting over an app from MySQL to use Linq2Sql – but one query has stumped me a bit.
SELECT * FROM Pages WHERE DomainID = @reportid AND (PageContent REGEXP ‘display:[ \t]*none’) > 0 ORDER BY URL ASC
Any ideas on how I would write something like this with Linq2SQL? Its the REGEXP bit thats got me stumped?
Why not use LINQ to return items that match on reportid and that contain ‘display:’, to minimise the amount of data being returned from the server, and then use regex on client side to filter that list down?