ScaffoldColumn attribute on type object
问题 It seems that to skip a member to come on a View you can set ScaffoldColumn attribute to false in your model [ScaffoldColumn(false)] public object Id { get; set; } but here i see that Id is of object type. Is this the only way? I tried with [ScaffoldColumn(false)] public int Id { get; set; } but it didn't work. How can i prevent scaffolding on a primitive type e.g. int,long etc. Edit I have define my model as public class Department { [ScaffoldColumn(false)] public int Id { get; set; }