title: Whats wrong with LINQ to EF?
body: <p>I am using EF. This is my LINQ query</p>
  
  <pre><code> public List&lt;Tuple&lt;int, string&gt;&gt; GetList()
   {
       return (from c in DALContext.MST
               select new Tuple&lt;int, string&gt;(c.CD, c.NAME)).ToList();
   }
  </code></pre>
  
  <p>When i call GetList() it throws an exception : Only parameterless constructors and initializers are supported in LINQ to Entities</p>
  
  <p>Instead when i rewrite this query:</p>
  
  <pre><code>List&lt;Tuple&lt;int, string&gt;&gt; lst = new List&lt;Tuple&lt;int, string&gt;&gt;();
  var query= (from c in DALContext.MST
              select new{c.CD, c.NAME});
  foreach (var item in query)
  {
      lst.Add(new Tuple&lt;int,string&gt;(item.CD,item.NAME));
  }
  return lst;
  </code></pre>
  
  <p>It just works fine. Whats wrong with my first query???</p>