title: Using reflection to obtain select fields in a linq query
body: <p>I am using Linq for my queries and would like to be able to get a list of properties I want returned in the "select" portion using reflection. I've tried the following to no avail:</p>
  
  <pre><code>string[] paramList = new[]{"AppId","Name"};
  var query =
                  from entity in
                      _ctx.App
                  select new {entity.GetType().GetProperties().Where(prop=&gt;paramList.Contains(prop.Name) )};
  </code></pre>
  
  <p>What am I missing here?</p>