title: Using automapper to apply a filter to a collection
body: <p>I have a domain model that contains a collection and I want to use AutoMapper to map the parent and children to the view model but I don't want children that have been "soft" deleted to be taken across. For instance:</p>
  
  <pre><code>public class Customer {
     public EntitySet&lt;Order&gt; {get;set;}
  }
  public class Order {
     public DateTime? DeletedDate {get;set;}
  }
  </code></pre>
  
  <p>my AutoMapper definition would be</p>
  
  <pre><code>Mapper.CreateMap&lt;Customer, CustomerViewModel&gt;();
  Mapper.CreateMap&lt;Order, OrderViewModel&gt;();
  </code></pre>
  
  <p>and I don't want Orders to be in the view model that have a value for DeletedDate.</p>
  
  <p>Is that possible in AutoMapper? Many thanks in advance,</p>
  
  <p>Steve.</p>