Friday, March 18, 2011

Entity framework does not support mapping an int column to Enum

Solutions:
Use a Foreign Key to a reference table and model this with an association (which is completely overkill).

Two ways for Workarounds
http://cticoder.wordpress.com/2008/08/16/using-enums-with-entity-framework/
http://blogs.msdn.com/b/alexj/archive/2009/06/05/tip-23-how-to-fake-enums-in-ef-4.aspx

No comments:

Post a Comment