I am new to LINQ and OrmLite/MySql. I have a service request argument that needs to result in a where clause:
`Name` LIKE '%something%' OR `Name` LIKE '%something%else%'
I know I can create an IN()
or an =
clause, via:
ev.Where(rn => Sql.In(rn.Name, request.Name)); // Assuming an array here
ev.Where(rn => rn.Name== request.Name));
But I can't seem to find a construct that lets me build up a LIKE
. Also, Name
is actually an alias so I am trying to avoid constructing the where clause manually.