title: How to hide Navigation properties when creating JSON response using EF 4?
body: <p>I am developing a Web Services application, and when I get from my EF model - for example a list of my "User" object - I get the fields of my table PLUS the Foreign Keys, etc?</p>
  
  <p>Does any know how to avoid these? I have been trying to modify the poco template but without luck.</p>
  
  <pre><code>     namespace JOhn.DataAccess
  {
      [Serializable()]
      [DataContract(Namespace = "")]
      public class CustomEntityObject : EntityObject
      {
          //[DataMember]
          [Browsable(false)]
          [XmlIgnore]
          [SoapIgnore]
          public new EntityKey EntityKey { get; set; }
  
      }
  }
  </code></pre>