title: How to add where clause for child items in Castle ActiveRecord
body: <p>I am using Castle ActiveRecord and created two entities as follow :</p>
  
  <pre><code>    [ActiveRecord("Teams")]
  public class Team : ActiveRecordLinqBase&lt;Team&gt;
  {
      public Team()
      {
          Members = new List&lt;Member&gt;();
      }
  
      [PrimaryKey]
      public int Id { get; set; }
  
      [Property("TeamName")]
      public string Name { get; set; }
  
      [Property]
      public string Description { get; set; }
  
      [HasMany(Inverse = true,
               Lazy = true,
               Cascade = ManyRelationCascadeEnum.AllDeleteOrphan)]
      public virtual IList&lt;Member&gt; Members { get; set; }
  }
  
  [ActiveRecord("Members")]
  public class Member : ActiveRecordLinqBase&lt;Member&gt;
  {
      [PrimaryKey]
      public int Id { get; set; }
  
      [Property]
      public string FirstName { get; set; }
  
      [Property]
      public string Lastname { get; set; }
  
      [Property]
      public string Address { get; set; }
  
      [BelongsTo("TeamId")]
      public Team Team { get; set; }
  }   
  </code></pre>
  
  <p>And I used ICriterion to have filtered Team data </p>
  
  <pre><code>IList&lt;ICriterion&gt; where = new List&lt;ICriterion&gt;();
  where.Add(Expression.Eq("Name", "name1"));
  ICriterion[] criteria = where.ToArray();
  
  var teams = Team.FindAll(criteria);
  </code></pre>
  
  <p>So far it works well, but I want to add another filter on Members table. The result query would be like this</p>
  
  <pre><code>select *
    from Teams t join Member m on t.Id = m.TeamId
   where t.Name = 'name1'
     and m.Address = 'address'
  </code></pre>
  
  <p>How to get this done using ICriterion? 
  I mean how to add criterion for Team.Members property.
  Not using LINQ. (I know this could be done using linq easily)</p>