How to use enum with EntityFramework [duplicate]

0

I have a relationship of my system where one class makes a relationship with another, but this other class there is nowhere in the system to change / delete its state (they are just static data) p>

I would like to know if the ideal would be to use enum and how do I use enums in C # using EntityFramework?

Enum has the following structure:

I would like to make this reflected in the database in table form and already filled in (Since the user will not be able to modify anything in this table)

    
asked by anonymous 21.02.2018 / 17:49

1 answer

0

Not possible. In the Entity Framework types by value can not represent a table.

    
21.02.2018 / 18:03