ModelBuilder and UseIdentityColumn fails to set identity property on column #33684
Labels
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Microsoft.EntityFrameworkCore.SqlServer 8.0.4
I'm using
ModelBuilder
to build a model up front; theModelBuilder
api feels more intuitive than theOnModelCreating
approach to me. For my tests I useEnsureCreated
to initialize a new database off of the model. I'm facing an issue with properties configured usingUseIdentityColumn()
where the identity property isn't being set on the column in the new database.If I switch to use the
OnModelCreating
approach to setup the model, the identity property is set as expected.The following code demonstrates the approach that is affected by this issue.
The text was updated successfully, but these errors were encountered: