title: How to combine MemberExpression instances in C# for a LambdaExpression?
body: <p>Given a class like this:</p>
  
  <pre><code>public class AnEntity
  {
      public int prop1 { get; set; }
      public string prop2 { get; set; }
      public string prop3 { get; set; }
  }
  </code></pre>
  
  <p>I am able to generate a lambda expression that selects one property like this:</p>
  
  <pre><code>ParameterExpression pe = Expression.Parameter(typeof(AnEntity), "x");
  MemberExpression selectClause = Expression
      .MakeMemberExpression(
          pe, 
          typeof(AnEntity).GetProperty(prop2)); // selecting prop2
  
  var selectLambda = Expression.Lambda&lt;Func&lt;AnEntity, object&gt;&gt;(selectClause, pe);
  </code></pre>
  
  <p>I can then use the lambda expression like this:</p>
  
  <pre><code>IQueryable&lt;AnEntity&gt; myEntities = dbContext.MyEntities.AsQueryable();
  var results = myEntities.Select(selectLambda);
  </code></pre>
  
  <p>How can I add a second select clause to the selectLambda? For example, how would I select both prop2 and prop3?</p>