Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 16th, 2012  |  syntax: C#  |  size: 0.26 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.             Cars = from p in CarEntities.Car
  2.                    orderby p.InvestigationStart descending
  3.                    select p;
  4.  
  5.             string[] terms = searchTerm.Trim().Split(' ');
  6.  
  7.             Cars = Cars.Where(p => terms.All(t => p.SearchIndex.Contains(t)));