How can I use enum in Visual C# ASP .NET MVC 4 Web Application?
I have a mySQL database with a table "flight" that contains a feild "flightDay" that uses the type enum('Monday', 'Tuesday', 'Wednesday', 'Thursday', utf8_bin
how can I make the class of the table Flight compile/work? in the model file of my application.
[Table("flight")]
public class Flight
{
[Key, Column(Order = 1)]
public int id { get; set; }
public int route { get; set; }
public enum flightDay { get; set; } **// How to make this work?**
public int aircraft { get; set; }
}