Unnecessary alternate key generated by convention #13628
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
punted-for-3.0
type-bug
Milestone
An unnecessary alternate key is created for the
UserListMember
table in Step 2 of the Steps to Reproduce:That alternate key is not generated when the word
User
is removed from the table name (Step 5):The same behaviour is also reproducible using the Npgsql provider.
Steps to Reproduce
.cs
file with content below:Migrations
folder.cs
file created in Step 2 with:Further technical details
EF Core version: 2.1.4
Database Provider: Microsoft.EntityFrameworkCore.Sqlite, Npgsql.EntityFrameworkCore.PostgreSQL
Operating system: Windows 10 1803
IDE: Visual Studio Code 1.28.1
The text was updated successfully, but these errors were encountered: