Using EntityFramework 4.2 from nuget drops Enum support RRS feed

  • Question

  • I was using EF 4.2 June CTP -installed using standalone installer- And I was successfuly able to use enums with code first.

    Then today I discovered that there is a nuget package released! So I decided to switch using the nuget package. Before doing this I uninstalled the June CTP.

    Then installed the nuget package for EntityFramework.Preview

    And now I'm getting an error regarding my enum properties. Here is the exception:

    "System.InvalidOperationException: The property 'Role' is not a declared property on type 'User'. Verify that the property has not been explicitly excluded from the model by using the Ignore method or NotMappedAttribute data annotation. Make sure that it is a valid primitive property."

    Any ideas how to get this sorted out?!

    Muhammad Mosa http://mosesofegypt.net
    Tuesday, October 11, 2011 2:57 PM

All replies