title: Unable to retrieve a record from db using LINQ
body: <p>I am trying to retrieve a record for an update using below </p>
  
  <pre><code>var product= _db.Products.SingleOrDefault(x =&gt; x.Id == id);
  if (product!= null)
  {
      product.StatusId = statusId;
      _db.SaveChanges();
  }
  </code></pre>
  
  <p>Product Model</p>
  
  <pre><code>public int Id { get; set; }
  public int TypeId { get; set; }
  public int? CategoryId { get; set; }
  public int? StatusId { get; set; }
  public string Name { get; set; }
  public ProductStatus Status { get; set; }
  public ICollection&lt;ProductStatus&gt; ProductStatuses { get; set; }
  </code></pre>
  
  <p>But, while retrieving the record in the first line, it throws an exception saying <code>{"Invalid column name 'ProductStatus_Id'."}</code>
  I do have a ProductStatus table but not sure if it has anything to do with it</p>