protected EntityList FetchBy(GetByAgeCriteria criteria) { var q = QueryFactory.Instance.Query(this.Repository); q.AddConstraintIf(TestUser.AgeProperty, PropertyOperator.Equal, criteria.Age); return(this.QueryList(q)); }
public virtual TestUserList GetBy(GetByAgeCriteria criteria) { var q = QueryFactory.Instance.Query(this.Repository); q.AddConstraintIf(TestUser.AgeProperty, PropertyOperator.Equal, criteria.Age); return((TestUserList)this.QueryData(q)); }