问题
I am using an EF Reverse Engineer Code First project. Specifically, I used the Entity Model, code first from database method that allows one to select only a subset of the database tables for a particular MVC project.
The primary key column/member for one of my table models is present in the table model, but when I auto-generated the views from the controller the primary key column/member is missing, except from the Create View.
Is this standard behavior for the new version 6 -- Visual Studio Entity Framework Tools or did I do something wrong?
If it is standard behavior, is there way to modify a setting so that the primary key column is present in the views?
来源:https://stackoverflow.com/questions/27987745/mvc-ef-reverse-engineer-code-first-primary-key-column-member-missing-from-views