I'm using the following code to export a table to csv using Entity Framework and MVC:
string header = string.Join("\t", properties.Select(p => p.Name).ToArray());
Is there any way to select the display name I set in my model for example displaying "Hours" instead of "hrs":
[Display(Name = "Hours")]
public float hrs { get; set;
Currently I just get all the variable names and not the diaplay names I set. It seems like there should be an easy fix to this, but google isn't being much help.