public class Lot { public enum States { Draft = 0, Published = 1, Deleted = 2 } [Required] public States State { get; set; } }
With model above in database table (SQL 2008 R2) field State not created.
What's wrong?
Ef didn´t support Enums
This is the principal request for next version: http://data.uservoice.com/forums/72025-ado-net-entity-framework-ef-feature-suggestions/suggestions/1015335-support-for-enums?ref=title
http://blog.fujiy.net/ - MCPD em .NET 2.0 MCTS em .NET 4