title: Do I need to use POCO Classes with Entity Framework 6
body: <p>The following class was Auto generated from a template using the Entity Framework Model.</p>
  
  <pre><code>namespace Entities
  {
      using System;
      using System.Collections.Generic;
  
      public partial class Country
      {
          public Country()
          {
             this.Regions = new HashSet&lt;Region&gt;();
          }
  
          public long CountryId { get; set; }
          public string Code { get; set; }
          public string Name { get; set; }
          public bool Preferred { get; set; }
          public System.DateTime LastChanged { get; set; }
  
          public virtual ICollection&lt;Region&gt; Regions { get; set; }
     }
  }
  </code></pre>
  
  <p>I have a Wcf web service that returns POX (Xml) and Json only.  I am wanting to return my own serialised object like;</p>
  
  <pre><code>public class MyResponseObject
  {
      public int RequestId {get;set;}
      public List&lt;Country&gt; CountryList {get;set;}
      //other properties
  }
  </code></pre>
  
  <p>But I don't want to return the Regions ICollection.</p>
  
  <p>The object can then be returned using something like </p>
  
  <blockquote>
    <p>Newtonsoft.Json.JsonConvert.SerializeObject()</p>
  </blockquote>
  
  <p>Am I best returning my own serialised POCO object in this manner ?</p>