How to set start value for PK in EF Core 5.0

后端 未结 0 1193
[愿得一人]
[愿得一人] 2021-02-19 19:52

I need set start value (100000000) for PK \'ProductID\'. I use this code:

modelBuilder.Entity().Property(x => x.ProductID).UseIdentityColumn(100         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题