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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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


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


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


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


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


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


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


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


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

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

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

            return(queryable);
        }