title: An expression tree may not contain an assignment operator?
body: <p>How can i increment the index value in linq statement.</p>
  
  <pre><code>  int headIndex = -1;
             // int itemIndex = -1;
              lst = (from xx in db.vwCustomizationHeaders
                     where xx.ProductID == pID
                     select new custHeader()
                     {
                         headIndex = headIndex++,// Guid.NewGuid(),
               }
  </code></pre>