/// <summary>
        /// 数据检索
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        protected override IQueryable<Cmacquisitionlog> CreateQueryable(GetCmacquisitionlogPageInput input)
        {
            IQueryable<Cmacquisitionlog> queryable = base.CreateQueryable(input);

            queryable = queryable.WhereIf(input.Id !=null, t => t.Id == input.Id).AsQueryable();

            queryable = queryable.WhereIf(input.ObjectName !=null, t => t.ObjectName == input.ObjectName).AsQueryable();

            queryable = queryable.WhereIf(input.ObjectCode !=null, t => t.ObjectCode == input.ObjectCode).AsQueryable();

            queryable = queryable.WhereIf(input.Contents !=null, t => t.Contents == input.Contents).AsQueryable();

            queryable = queryable.WhereIf(input.CreationTime.HasValue, t => t.CreationTime == input.CreationTime.Value).AsQueryable();

            return queryable;
        }
Beispiel #2
0
        /// <summary>
        /// 数据检索
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        protected override IQueryable <Cmacquisitionlog> CreateQueryable(GetCmacquisitionlogPageInput input)
        {
            IQueryable <Cmacquisitionlog> queryable = base.CreateQueryable(input);

            queryable = queryable.WhereIf(input.Id != null, t => t.Id == input.Id).AsQueryable();


            queryable = queryable.WhereIf(input.ObjectName != null, t => t.ObjectName == input.ObjectName).AsQueryable();


            queryable = queryable.WhereIf(input.ObjectCode != null, t => t.ObjectCode == input.ObjectCode).AsQueryable();


            queryable = queryable.WhereIf(input.Contents != null, t => t.Contents == input.Contents).AsQueryable();

            queryable = queryable.WhereIf(input.CreationTime.HasValue, t => t.CreationTime == input.CreationTime.Value).AsQueryable();

            return(queryable);
        }