title: Cannot implicitly convert type 'System.Data.EntityState' to 'System.Data.Entity.EntityState'. An explicit conversion exists (are you missing a cast?)
body: <p>I am getting this error in asp.net when using Entity Framework :
  "Cannot implicitly convert type <code>System.Data.EntityState</code> to <code>System.Data.Entity.EntityState</code>. An explicit conversion exists (are you missing a cast?)"</p>
  
  <p>Here is the snippet:</p>
  
  <pre><code>foreach (OrderLine line in order.OrderLines)
  {
      context.Entry(line.Product).State = System.Data.EntityState.Modified;
  }
  </code></pre>
  
  <p>Please suggest what should I do to resolve the error.</p>