title: EF Code-First - Storing IEnumerable Of Enum
body: <p>I'm using EF June CTP which has simple enum support. I have a MVC 3 view which has checkboxes that when submitted are retrieved as an array of some enum.</p>
  
  <pre><code>public enum CheckBox : byte
  {
     VALUE_1 = 1,
     VALUE_2 = 2,
     ...
  }
  </code></pre>
  
  <p>I need to take that colelction of enums ((IEnumerable)) and store that via code-first approach. Right now, that property is being ignored altogether.</p>
  
  <p>I'm not sure if it would ultimately, when works, would create a separate one-to-many table or store all the values in one column but any ideas would be great. Just need to store it. Once it stores it, it would be ultimately be awesome if it didn't create a separate one-to-many table and somehow store it within the same table as some delimited string but I'm reaching here probably.</p>
  
  <p>Thank you.</p>
  
  <p><strong>UPDATE 1</strong>
  Tried adding [Flags] to the enum to no avail. It gets completely ignored during table generation. My Model property is:</p>
  
  <pre><code>public IEnumerable&lt;CheckBox&gt; Values { get; set; }
  </code></pre>