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

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

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

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

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

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

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

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

            return queryable;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 数据检索
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        protected override IQueryable <Tfgasdrilling> CreateQueryable(GetTfgasdrillingPageInput input)
        {
            IQueryable <Tfgasdrilling> queryable = base.CreateQueryable(input);

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

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


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


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


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


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

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

            return(queryable);
        }