title: Error creating a Linq query
body: <p>I've a query like this one</p>
  
  <pre><code>struct MyStruct
  {
    public string name;
    public double amount;
  }
  
  var a =
    from p in Products
    select new MyStruct
    {
      name = p.Name,
      amount = p.Amount
    };
  </code></pre>
  
  <p>When I execute the query I get the following exception:</p>
  
  <blockquote>
    <p><strong>System.NotSupportedException</strong> {"Only parameterless constructors and initializers are supported in LINQ to Entities."}</p>
  </blockquote>
  
  <p>but if I change the type of MyStruct to <em>class</em> then it works as expected.</p>
  
  <p>Why it works with <em>class</em> and fail with <em>struct</em>?</p>