DisplayNameFor() From List<Object> in Model
问题 I believe this is pretty simple, I just can't seem to find the right way to show the display name for an item within a list within my model. My simplified model: public class PersonViewModel { public long ID { get; set; } private List<PersonNameViewModel> names = new List<PersonNameViewModel>(); [Display(Name = "Names")] public List<PersonNameViewModel> Names { get { return names; } set { names = value; } } } and Names: public class PersonNameViewModel { public long ID { get; set; } [Display