
Untitled
By: a guest on
May 16th, 2012 | syntax:
C# | size: 0.26 KB | hits: 18 | expires: Never
Cars = from p in CarEntities.Car
orderby p.InvestigationStart descending
select p;
string[] terms = searchTerm.Trim().Split(' ');
Cars = Cars.Where(p => terms.All(t => p.SearchIndex.Contains(t)));