@Html.DisplayNameFor for details model
问题 In my model I have an Entity public class Carrier { public Guid CarrierId { get; set; } public string Name { get; set; } } I also have a ViewModel public class CarrierIndexViewModel { public IEnumerable<Carrier> Carriers { get; set; } public PagingInfo PagingInfo { get; set; } } I have a strongly-typed (CarrierIndexViewModel) Index View, which is suppose to display a table of Carrier using PagingInfo. I'm trying to use Html helper to display Carrier.Name in my table's header When I used