We are using Code First with EF-core and I would like to add a column which has an Identity Seed starting at another value other to 1.
Currently we can set it to auto increment via the EntityTypeBuilder
during migrations using:
entityBuilder.Property(e => e.PropertyName).ValueGeneratedOnAdd();
However I cannot find out how to change the identity seed. Does it still need to be updated like it was with other versions of EF? e.g. writing some custom sql and running this during migration?
How to seed identity seed value in entity framework code first for several tables
How do I set Identity seed on an ID column using Entity Framework 4 code first with SQL Compact 4?
In EF-core there does not seem to be code for SqlServerMigrationSqlGenerator > override Generate(AlterTableOperation alterTableOperation)
?