title: Linq and Entity FW database access and search in ASP.NET MVC site
body: <p>I'm trying to write a search function that will search trough the whole table and I'll get all columns, so far I'm using this code and I can only extract one column from the table, how can I get all columns.</p>
  
  <p>CODE:</p>
  
  <pre><code>public ActionResult SearchIndex(string productsAll, string searchString)
          {
              var products = from m in db.Products
                           select m;
  
              if (!String.IsNullOrEmpty(searchString))
              {
                  products = products.Where(n =&gt; n.Name.Contains(searchString));
              }
  
              if (string.IsNullOrEmpty(productsAll))
                  return View(products);
              else
              {
                  return View(products);
              }
  
          }
  </code></pre>
  
  <p>Please HELP :D</p>