title: Filters in DDD Repository
body: <p>There is Campaign Entity and for that, I have CampaignRepository which have this functions</p>
  
  <ol>
  <li>public IList FindAll();</li>
  <li>public Campaign FindByCampaignNumber(string number);</li>
  </ol>
  
  <p>But now i want this criterias -:</p>
  
  <ol>
  <li>Find campaigns that are created today.</li>
  <li>Find campaigns that are created in this month</li>
  <li>Find top 5 latest campaigns.</li>
  <li>Find campaigns that are created in this year.</li>
  </ol>
  
  <p>So for all these campaigns filters,</p>
  
  <p><strong>Do i create separate function for each of them in repository ?</strong></p>
  
  <p>and implement like this way.</p>
  
  <p>Getall campaigns and then filter required campaigns, but i do not want all campaigns. While searching in google i find this solution's</p>
  
  <p>1: <a href="http://russelleast.wordpress.com/2008/09/20/implementing-the-repository-and-finder-patterns/" rel="noreferrer">http://russelleast.wordpress.com/2008/09/20/implementing-the-repository-and-finder-patterns/</a></p>
  
  <p><strong>Is there any method i can avoid multiple functions or do i go ahead and create seperate functions for each of this filter ?</strong></p>