示例#1
0
        protected EntityList FetchBy(GetByAgeCriteria criteria)
        {
            var q = QueryFactory.Instance.Query(this.Repository);

            q.AddConstraintIf(TestUser.AgeProperty, PropertyOperator.Equal, criteria.Age);

            return(this.QueryList(q));
        }
示例#2
0
        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));
        }