public enum Currency
{
EUR = 1,
USD = 2,
GBP = 3
}
Let's say I have an enum as shown above. If I were to use this using Entity Framework (code first) then the int
values will be stored in the database. No lookup table is stored nor the string names of the enum values, which makes it difficult to read the database data directly.
Is there a way to get EF to create a lookup table for enums?