I feel like an idiot, but I can't figure out how to add an enum. I read the documentation, and it states:
"In the Model Explorer window, right-click the Enum Types node and select the Add Enum Type command from the drop-down menu or, alternatively, click the Add Enum Type button on the toolbar of the Model Explorer window."
However, I don't have an Enum Types node or a button in the toolbar. I have the latest version of EF from 1/12/12, so that's not the problem.
Can anyone tell me why I don't see the option to add an enum?
While I'm asking, is there a way to point to an existing enum elsewhere in my code, rather than creating a new one. This one might become obvious once I figure out the first question, but I'd like to know for sure it's possible.
Thx.
Add Enum missing
You should install Entity Framework June 2011 CTP on your workstation and set the "Entity Framework version" option to "Entity Framework 4.2" (right click on the diagram surface > Model Settings > Model > General).johnwest80 wrote:Can anyone tell me why I don't see the option to add an enum?
There is no official support of enums in Entity Framework yet. Only particular support is available in Entity Framework June 2011 CTP. Enums will be fully supported in Entity Framework 5.0 (with .NET Framework 4.5).