In EntityFramework Core 8.
I’d like to change the default PK for UsersRoles table, currently set as follows:
table.PrimaryKey("PK_UsersRoles", x => new { x.UserId, x.RoleId });
to something else (e.g. including an additional column)
Is there a way to achieve the result using Migrations?
I can change table configuration using sql DDL but I don’t know if it is feasible to do it using migrations.
New contributor
jinew is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.