Using the following two methods in the view of viewing and editing, they start the model and automatically create a list of fields with labels for display / editing.
@Html.EditorForModel() @Html.DisplayForModel()
The problem is that they display each field. Including an identifier field, which is bad when it comes to editing, since it cannot be changed.
So how to hide certain fields in the model. (without removing fields from the model.)
Doomsknight
source share