title: How to resolve AutoMapper error? (stackoverflow exception!)
body: <p>I am using <a href="http://automapper.codeplex.com" rel="noreferrer">AutoMapper</a> + EF (Entities => POCO) for the following class:</p>
  
  <pre><code>public class Category
  {
      public int CategoryID { get; set; }
  
      public string Name { get; set; }
  
      public Category Parent { get; set; }
  
      public IList&lt;Category&gt; Children { get; set; }
  }
  </code></pre>
  
  <p>Since this class has relationship with itself (Parent / Children), AutoMapper went crazy and threw a Stackoverflow exception. Have ever any of you experienced this problem?</p>