title: Entity Framework Core seed data with an Identity of 0
body: <p>I'm trying to add some seed data to my model using <code>.HasData</code> in order to populate my database.  I use ID 0 within my data model to map to unknown on each table.</p>
  
  <p>When trying to run the application once adding this, I get the following error: </p>
  
  <blockquote>
    <p>The seed entity for entity type 'DboTable' cannot be added because
    there was no value provided for the required property 'Id'.</p>
  </blockquote>
  
  <p>I assumed that EFCore forces a value of null since a integer of 0 is equivalent to null, but when I try to force an integer parse, it still throws the same error.</p>
  
  <p>At this point I'm unsure of how to approach this, any advice would be appreciated.</p>
  
  <p><strong>snippit from DbContext.cs</strong></p>
  
  <pre><code>...
  entity.HasData(new DboTable()
  {
      Id = 0,               // integer
      Label = "UNKNOWN",    // string
      ...
  });
  ...
  </code></pre>