title: MVC ModelState error "The ID field is required" although the database generates an ID
body: <p>I created the MVC application database-first with the ID field being generated by the database.</p>
  
  <p>Since the ID is generated by the database, in the Model I set the 'StoreGeneratedPattern' property to 'Identity'.</p>
  
  <p>However, I am still getting the ModelState error "The ID field is required" when I submit a 'create' form.</p>
  
  <p>I have tried restarting the solution, cleaning it, re-building it. I know that I have had this problem before, so if I figure it out I will post the answer here so that future me can find it.</p>