title: Entity framework nesting complex types
body: <p>I have a stored procedure that returns multiple result sets.  Each one is a complex type.  The first result set would contain a list of items of the same complex type as the second result set, etc.  These do not cleanly correlate to specific entities.  For example, my POCO classes should be</p>
  
  <pre><code>public partial class Message
  {
      public string Subject { get; set; }
      ...
      public List&lt;Recipient&gt; Recipients { get; set; }
  }
  
  public partial class Recipient
  {
      public string Email { get; set; }
      ...
  }
  </code></pre>
  
  <p>According to the documentation, "Entity and complex types can now be nested inside classes" for EF 6.  However, I cannot figure out how to create a LIST of a complex type within my first complex type.  When I edit my FunctionImport and use Get Column Information, it only returns the first complex type.  When I try Create New Complex Type, it still only returns the first complex type.  Finally, I have created all of the complex types I need manually and tried to add the Recipient complex type to the Message complex type, it will only allow a single Recipient to be added.  Is there something special you need to do to nest complex types?  Are there any examples out there?  I could not find anything that addressed this on CodePlex, but I may just be missing it.</p>
  
  <p>Thanks in advance for all your help!</p>