I am aware of this, which states that it is not possible to create a primary key with non clustered index via code first. Is this still the case?
Ideally, I would like to specify via EntityTypeConfiguration, that my primary key (Guid) has a non-clustered index and there is another column (int) with a clustered index.
AFAIK this is not possible with EntityTypeConfiguration. However you can do this with Code-First migrations. Working example:
Result:
You can also do this with your
OnModelCreating
method like so: