I have a model thats is for db (codeFirst approach)
public class Request : BaseEntity
{
public string Uuid { get; set; }
public string Email { get; set; }
[NotMapped]
public Status Status { get; set; }
public string StatusName { get; set; }
public string Description { get; set; }
}
I want when I fill my Status enum to automatically set property StatusName in the way that grabs which enum type is and to convert it to string with Humanizer.
My try was as follows:
...set { return ((Status[])Enum.GetValues(typeof(Status))).Select(x => new String() { x.ToString() })); }; } but with no success.