You cannot update a primary key, but that is not a limitation of
entity framework, but a very fundamental rule of database development.
A primary key is assigned once to a row in a table and makes this row
Maybe you can update the key in some ways, but this violates definitely the definition of a primary key.
So, just don't do it, there are other ways to accomplish what you are trying to do.