Example #1
0
        /// <summary>
        /// 数据检索
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        protected override IQueryable <Tfpointclosedwall> CreateQueryable(GetTfpointclosedwallPageInput input)
        {
            IQueryable <Tfpointclosedwall> 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.Co != null, t => t.Co == input.Co).AsQueryable();


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


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


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


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


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


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


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


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


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


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


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

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

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

            return(queryable);
        }
        /// <summary>
        /// 数据检索
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        protected override IQueryable<Tfpointclosedwall> CreateQueryable(GetTfpointclosedwallPageInput input)
        {
            IQueryable<Tfpointclosedwall> 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.Co !=null, t => t.Co == input.Co).AsQueryable();

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

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

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

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

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

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

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

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

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

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

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

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

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

            return queryable;
        }