title: Significane of using AsEnumerable() in query to take anonomous value in to view model
body: <p>i just don't understand the meaning of writing AsEnumerable() in linq query.</p>
  
  <p>i am having one UserDetail table in which i am fetching all details of user and i want to take
  name,email in to my model.</p>
  
  <pre><code> var data = context.UserDetails
                     .Select(temp =&gt; new FullName = temp.Fullname, Email = temp.Email })
                     .ToList()
                     .AsEnumerable()
                     .Select(d =&gt; new UserDetailsModel { Fullname = d.FullName, Email = d.Email })
                     .ToList();
  </code></pre>
  
  <p>What is the meaning of AsEnumerable() as because when i am removing this there is no error but as i have seen some queries where they are using this method.</p>
  
  <p>And does anybody have better approach for taking anonymous object value in to my View Model?</p>
  
  <p>Does it improve performance? What is the significance of this method? Can anybody explain me this method in context to my question and details?</p>