Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using enums in Visual Studio 2010 Table Designer

I'm designing a data base using the Table Designer in VS 2010 pro, then generating code with SqlMetal.

I want to use a enum as a type in one of the columns.

How is it possible?

like image 932
elyashiv Avatar asked Oct 22 '22 00:10

elyashiv


1 Answers

You can use Convert to Enum as described in Enum Support - EF Designer:

  • create new model
  • add new Entity
  • convert it nu Enum

Update

You need to Entity Framework 5.0, .NET 4.5 and Visual Studio 2012

It is not possible under you condition with Visual Studio 2010

like image 52
MikroDel Avatar answered Dec 02 '22 14:12

MikroDel