Entity Framework primary key constraint
问题 I am using Entity Framework 6.0 with Microsoft SQL Server. By default, the primary key it generates for a table is named like PK_dbo.TableName , where TableName is in a plural form, even though the actual name of the table is in a singular form. For example, I have a table named dbo.Employee . Yet the primary key denoted by EF 6 is PK_dbo.Employees . Is there any way to change the primary key to something like PK_TableName where the TableName is in a singular form? Update: Thanks for the