I have a simple console app and i am trying to scaffold all my models but i have some of them that does not have defined a primary key, Entity framework 2.1 give support to that kind of tables but still get this warning
Unable to identify the primary key for table 'dbo.myTable'. Unable to generate entity type for table 'dbo.myTable'.
So then it doesn't generate the model
dotnet ef dbcontext scaffold "Server=MyServer;Database=MyDb;Trusted_Connection=True;MultipleActiveResultSets=true" Microsoft.EntityFrameworkCore.SqlServer -o Models -f
Am I missing Any parameter or any help to scaffold models with no primary key defined?
This was not possible until EF core 3.0 You can test it on Ef core 3.0 which is currently in preview.