MVC EF Reverse Engineer Code First primary key column/member missing from views in auto-generated code

寵の児 提交于 2020-01-05 08:59:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!