Is there any way to compare strings in a C# LINQ expression similar to SQL\'s LIKE operator?
LIKE
Suppose I have a string list. On this list I want to search
Ideally you should use StartWith or EndWith.
StartWith
EndWith
Here is an example:
DataContext dc = new DCGeneral(); List lstPerson= dc.GetTable().StartWith(c=> c.strNombre).ToList(); return lstPerson;