Using enums in Visual Studio 2010 Table Designer

724 Views Asked by At

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?

1

There are 1 best solutions below

8
MikroDel On

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