I'm calling the HasData method (see below) for an entity that has an Id (Identity) column, but no data is inserted into the table the first time the Migration runs.
When the TestObject model was not using an Id (Identity) column for the Primary Key, data was inserted as expected the first time the migration was run.
Is EF Core able to insert data for Identity columns?
modelBuilder.Entity<TestObject>().HasData(
new TestObject
{
Id = 1,
TestValue = "Test 1"
}