Tinyint(byte),SmallInt(Int16) not compatible with Enum in EF5
问题 Using Database first design and having tinyint (or smallint) column: [MyEnumColumn] [tinyint] NOT NULL I mapped this column to Enum Type in EDM with External Type: NSpace.MyEnumType Name:MyEnumType UnderlyingType:Byte Where NSpace.MyEnumType is defined like this: public enum MyEnumType { One, Two, Three, All } Only to get this error when trying to load entity from context: Schema specified is not valid. Errors: No corresponding object layer type could be found for the conceptual type