title: Automapper ignore nested collection properties
body: <p>I have a simple objects:</p>
  
  <pre><code>public class Project : Entity
  {
      public uint ProjectId { get; set; }
      public virtual ICollection&lt;Cabin&gt; Cabins { get; set; }
  }
  
  public class Cabin : Entity
  {
      public IPAddress IpAddress { get; set; }
      public int Port { get; set; }
      public DateTime LastConnection { get; set; }
  
      public byte ConnectionStatus { get; set; }
      public byte TechnicalStatus { get; set; }
  
      public Project Project { get; set; }
      public int ProjectId { get; set; }
  }
  </code></pre>
  
  <p>So mapping using auto mapper from one to another with some ignores would look like:</p>
  
  <pre><code>        var mapperConfig = new MapperConfiguration(cfg =&gt;
          {
              cfg.CreateMap&lt;Project, Project&gt;()
                 .ForMember(source =&gt; source.Id, opt =&gt; opt.Ignore())
                 .ForMember(source =&gt; source.ProjectId, opt =&gt; opt.Ignore())
                 .ForMember(source =&gt; source.Cabins, opt =&gt; opt.MapFrom(cab =&gt; cab.cabins));
          });
  </code></pre>
  
  <p>And it works it maps one project object to another, and ignores id and project id and maps collection.</p>
  
  <p>But on that level, is it possible to set what properties from source.Cabins would be ignored?</p>
  
  <p>For example i want to ignore ConnectionStatus, TechnicalStatus.</p>