Using Enums with Code First & Entity Framework 5
问题 Just trying to confirm an impression: it seems enums in EF5 + Code First are only supported when declared within the same namespace as the classes using them as property types. Can anyone confirm that? Couldn't find anything on the web for this... 回答1: A relevant bug that was fixed earlier. 4.3 Beta 1 release notes say: Bug fix for GetDatabaseValues . In earlier releases this method would fail if your entity classes and context were in different namespaces. This issue is now fixed and the