title: Add a condition to a list getter property
body: <p>I have 2 poco objects:</p>
  
  <pre><code>public abstract class BasePoco
  {
      public int Id { get; set; }
      public bool IsDeleted { get; set; }
  }
  
  public class FirstPoco : BasePoco
  {
      public virtual List&lt;SecondPoco&gt; SecondPocos { get; set; }
  }
  public class SecondPoco : BasePoco
  {
  }
  </code></pre>
  
  <p>When I query a firstPoco object from my Repository implementation where Id == 10:</p>
  
  <pre><code>var first = Repository.Get&lt;FirstPoco&gt;(10);
  </code></pre>
  
  <p>I have a custom logic implemented in my Repository that all objects match:</p>
  
  <pre><code>x=&gt;!x.IsDeleted
  </code></pre>
  
  <p>But is there some way how to implement this for related collection of SecondPoco?</p>
  
  <p>At the moment I would have to write:</p>
  
  <pre><code>var secondCollection = first.SecondPocoes.Where(x=&gt;!x.IsDeleted);
  </code></pre>
  
  <p>Is there a way how to do this generically?</p>
  
  <p><strong>EDIT</strong>
  this is my Get method:</p>
  
  <pre><code>private IQueryable&lt;T&gt; GetQueryable&lt;T&gt;() where T : BasePoco
  {
      return _context.Set&lt;T&gt;().AsQueryable().Where(x =&gt; !x.IsDeleted);
  }
  public T Get&lt;T&gt;(int id) where T : BasePoco
  {
      return GetQueryable&lt;T&gt;().FirstOrDefault(x =&gt; x.Id == id);
  }
  </code></pre>