예제 #1
0
        /// <summary>
        /// 数据检索
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        protected override IQueryable <Bspermission> CreateQueryable(GetBspermissionPageInput input)
        {
            IQueryable <Bspermission> queryable = base.CreateQueryable(input);

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


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


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


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


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


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

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

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

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

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

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

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

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

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

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

            return queryable;
        }