How to configure an Identity column using Entity Framework Core?

前端 未结 5 728
借酒劲吻你
借酒劲吻你 2021-01-03 19:10

How do I create an Auto increment identity column in Entity Framework Core?

Obviously I can do it using fluent API for EF6 for example.

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-03 19:43

    Looks like they changed it once again and the new method now is:

    .UseIdentityColumn()
    

提交回复
热议问题