I have a table with CreatedBy
ModifiedBy
and Isactive
columns. Using Entity Framework Database first renders all the fields in create, detail and list views. I am automatically creating views by using "MVC 5 Controller with views, using Entity Framework" option.
I want views to don't show these fields and assign values in controller to it. I already tried [ScaffoldColumn(false)]
but it works only with @Html.DisplayForModel()
What should i do to achieve this?