title: Changing Primary Key using Entity Framework Core Migrations
body: <p>I am trying to Change the Primary key of a table via Entity Framework Core Migrations:</p>
  
  <pre><code>protected override void Up(MigrationBuilder migrationBuilder)
  {
          migrationBuilder.DropPrimaryKey(
              name: "PK_Permissions",
              table: "Permissions");
  }
  </code></pre>
  
  <p>When I try to update the database I get the following error message:</p>
  
  <pre><code>To change the IDENTITY property of a column, the column needs to be dropped and recreated.
  </code></pre>
  
  <p>How can I update the database?</p>