title: Convert an Entity to a extended class based on original class?
body: <p>I have a Employee class which is an Entity Framework code first class representing an Employee. I would like to create a view model based on the original Employee class and then populate that class from a linq query to my EF context.</p>
  
  <pre><code> public class EmployeeVM : Employee
  {  
      public List&lt;DepartmentSelect&gt; Departments { get; set; }
  }
  
  EmployeeVM employee = context.Employees.Find(id);
  </code></pre>
  
  <p>I get the error "cannot implicitly convert type Employee to EmployeeVM."
  Is there a simple way to do this rather then creating a new object and foreaching every parameter into the equivalent in the new class?</p>