How can I make it so that my context objects uses the Enum feature in Entity Framework 5.0 if I am using Database First.
Asked
Active
Viewed 6,972 times
1 Answers
32
Go to the model browser and create a new enum type, then go to whatever column you wish to use it on and change its type to the enum that you just created.

Adam Robinson
- 182,639
- 35
- 285
- 343
-
2In v6 (not sure about v5) you can also just right-click the column and hit "Convert to Enum" which will then take you to the enum creation dialog – Alex Nov 13 '13 at 11:27