LazyTarget
LazyTarget

Reputation: 879

Enums EF 5.0 - Database First

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.

Upvotes: 27

Views: 7011

Answers (1)

Adam Robinson
Adam Robinson

Reputation: 185583

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.

Upvotes: 32

Related Questions