title: Is it possible to store a struct's fields in the same table as the containing class?
body: <p>I'm currently using Entity Framework 4 with the June 2011 CTP (for enum support) and I'm having difficulty with embedding a struct in a persisted class.  I have a <code>Patient</code> class with an <code>InclusionCriteria</code> struct field (among others):</p>
  
  <pre><code>public class Patient
  {
      public InclusionCriteria inclusionCriteria
      {
          get;
          set;
      }
  
      ...
  }
  </code></pre>
  
  <p>The struct is fairly simple, with primitive fields:</p>
  
  <pre><code>public struct InclusionCriteria
  {
      public bool withStemi
      {
          get;
          set;
      }
  
      ...
  }
  </code></pre>
  
  <p>After running the system, it became apparent that the struct's data was not being saved.  When I view the generated table, the struct is not there (as a foreign key or otherwise).  I would like the struct's fields to be located in the <code>Patient</code> table, so I haven't made a <code>DbSet</code> for the criteria.  I could potentially do this, but I'd rather keep it all in the same table.  Is this possible in the entity framework?</p>