You can do something like this.
var numbers = new string[]{"1","2","3","4","5","6","7","8","9","0"}; var b = (from c in dbContext.Companies where numbers.Contains(c.CompanyName.Substring(0,1)) select c).ToList();
You may run into a problem if your company is empty.
source share