Enums EF 5.0 - Database First

前端 未结 1 1891
醉酒成梦
醉酒成梦 2020-12-05 13:30

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.

相关标签:
1条回答
  • 2020-12-05 14:31

    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.

    0 讨论(0)
提交回复
热议问题