Create a non-clustered index in Entity Framework Core
问题 Using Entity Framework Core, I want to have a Guid PK, without suffering page fragmentation in the database. I have seen this post and this. Although it was possible in EF6, the way it's done seems to have changed. Is it possible to create a non-clustered primary key in Entity Framework Core and have an additional index? Q&A Answer below. 回答1: It is possible using EntityFrameworkCore v1.0.1 or greater. The following code gets the desired result: using System; using Microsoft