You can use SqlMethods.Like().
An example of the usage:
var results =
from u in users
where SqlMethods.Like(u.FirstName, "%John%")
select u;
More Related Contents:
- convert sql query into lambda expression [closed]
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method, and this method cannot be translated into a store expression
- Is there a good LINQ way to do a cartesian product?
- LINQ to SQL – Left Outer Join with multiple join conditions
- linq case statement
- LINQ to SQL multiple tables left outer join
- Equivalent of SQL ISNULL in LINQ?
- Distinct in Linq based on only one field of the table
- Could not find an implementation of the query pattern
- Get an IDataReader from a typed List
- Local sequence cannot be used in LINQ to SQL implementation of query operators except the Contains() operator
- Entity Framework. Delete all rows in table
- Use linq to generate direct update without select
- Join and Include in Entity Framework
- How to make LINQ execute a (SQL) LIKE range search
- Calling a SQL User-defined function in a LINQ query
- Issues Doing a String Comparison in LINQ
- Convert SQL to LINQ Query [closed]
- Linq To Sql compare Time only
- Linq union usage?
- How to select only the records with the highest date in LINQ
- SQLException : String or binary data would be truncated
- Convert / Cast IEnumerable to IEnumerable
- Select multiple fields group by and sum
- Where can I find the System.Linq.Dynamic dll?
- Linq – Top value from each group
- Mapping columns in a DataTable to a SQL table with SqlBulkCopy
- SQL connection string for microsoft access 2010 .accdb
- C# Searching for files and folders except in certain folders
- What is the difference between LINQ ToDictionary and ToLookup