我正在尝试通过Entity Framework Core Migrations更改表的主键:
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropPrimaryKey(
name: "PK_Permissions",
table: "Permissions");
}
当我尝试更新数据库时,出现以下错误信息:
To change the IDENTITY property of a column, the column needs to be dropped and recreated.
如何更新数据库?