locked
CF EF CTP5 enums in model how to? RRS feed

  • Question

  •  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?

    Thursday, January 6, 2011 8:18 PM

Answers