Mapping EF5 Enum for External Type

Is it just me, or is it not working?

In the model, I first dragged into a simple table and created an enumeration (via conversion to enumeration). Now I tried with and without creating enumeration elements in the dialog box, but if I marked the reference external type, I get:

The specified schema is invalid. Errors: there is no corresponding layer of the object type can be found for the conceptual type 'ControlPanelDevModel.EventType'.

+5
source share
2 answers

Take a look at my blog post - it shows how to create and use external enumeration types: http://blog.3d-logic.com/2012/09/11/using-exisiting-enum-types-in-entity-framework-5/ EF5 RTM ( EF June CTP 2011), .NET Framework 4.5, Enum Enum. , EDM Enum CLR ( , Edm.Int32 - #/VB.NET - int). Enum Enum, , / #/VB. CLR EDM (, , , , ).

+8

, , , Enum tinyint.

, Enum "byte", .

Tinyint (), SmallInt (Int16), Enum EF5

+10

All Articles