title: How to put entities and collection of entities inside a DTO in Silverlight - WCF RIA?
body: <p>I would like to make a DTO which contains Entities. How should I do that? Is it possible?</p>
  
  <p>For example I have something like this in my server project:</p>
  
  <pre><code>public class MyCustomDTO
  {   
      [Key]
      public int id { get; set; }
  
      public EntityCollection&lt;MyEntity&gt; list { get; set; }
  
      public MyEntity2 dummyproperty { get; set; }
  
      public string name{ get; set; }
  }
  </code></pre>
  
  <p>But on the client side only the basic types are generated, and the collection and the MyEntity2 typed property is not.</p>
  
  <p>My goal is to encapsulate a few different entities into one DTO, instead of collecting them with multiple async queries...</p>
  
  <p>Or what different solutions might be suitable for this scenario? Am I missing something (some attributes) or it's just not supported?</p>