You need to use StartsWith , Contains or EndsWith depending on where your string might be displayed. For example:
var query = from c in ctx.Customers where c.City.StartsWith("Lo") select c;
will find all cities starting with "Lo" (for example, London).
var query = from c in ctx.Customers where c.City.Contains("York") select c;
will find all cities that contain "York" (for example, New York, Yorktown)
A source
Chrisf
source share