title: Exclude columns getting data with Entity Framework
body: <p>I'm using Entity Framework in C#. And I want exclude some columns while getting data from database. For example, my student table has 10 colums. And there is some columns in table like CreatedDate, CreatedBy, CreateRole, UpdatedDate, Updatedby, UpdatedRole. I want generic solution for exclude this column while getting list from database like below.</p>
  
  <p><strong>I'm looking for like below</strong></p>
  
  <pre><code> context.Students   
  .Exclude("CreatedDate","CreatedBy","CreateRole","UpdatedDate","Updatedby","UpdatedRole")
  .ToList();
  </code></pre>
  
  <p><strong>Please don't advice below solution, because this is not what I'm looking for.</strong></p>
  
  <pre><code>context.Students.Select(p=&gt;new {
  p.Name,
  p.Surname,
  p.Number,
  p.BirthDate
  }).ToList();
  </code></pre>