• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# QueryBuilder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中QueryBuilder的典型用法代码示例。如果您正苦于以下问题:C# QueryBuilder类的具体用法?C# QueryBuilder怎么用?C# QueryBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



QueryBuilder类属于命名空间,在下文中一共展示了QueryBuilder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: btnView_Click

        private void btnView_Click(object sender, EventArgs e)
        {
            if(KenhPhat._getSelectedID()<=1)
            {
                HelpMsgBox.ShowNotificationMessage("Vui lòng chọn kênh phát");
                return;
            }

            var sql =
                string.Format(
                    @"select ct.time_start,ct.time_end,ct.kenh_phat,iif(c.ct_id is null, tct.noi_dung, c.noi_dung) noi_dung,
            c.nuoc_san_xuat, ct.rate_group,datediff(minute,ct.time_start,ct.time_end) timesplit
            from tns_programs_grid_scr_ct ct
            left join tns_chuong_trinh tct on tct.tct_id=ct.chuong_trinh
            left join chuong_trinh c on c.ct_id=tct.ct_id
            where 1=1");
            var query = new QueryBuilder(sql);

            AppCtrl.addID(query, "ct.PGS_id", FileNguon);
            query.addID("CT.KENH_PHAT", KenhPhat._getSelectedID());
            var dt = NgayPhatSong.DateTime;
            query.addDateFromTo("CT.NGAY_PHAT", new DateTime(dt.Year, dt.Month, dt.Day, 0, 0, 0),
                                new DateTime(dt.Year, dt.Month, dt.Day, 23, 59, 59));

            query.setAscOrderBy("ct.time_start, ct.kenh_phat");

            var ds = HelpDB.getDBService().LoadDataSet(query, KE_HOACH_LPS_CT.TABLE_NAME);
            gridControlDetail.DataSource = ds.Tables[0];
            gridBand1.Caption = dt.ToString("ddd " + FrameworkParams.option.dateFormat);
        }
开发者ID:khanhdtn,项目名称:did-vlib-2011,代码行数:30,代码来源:frmTNSGridTracking.cs


示例2: FhaMaintainCostDTOQuery

 /// <summary>
 ///   FHA维修成本查询。
 /// </summary>
 /// <param name="query">查询表达式。</param>
 /// <returns> FHA维修成本DTO集合。</returns>
 public IQueryable<FhaMaintainCostDTO> FhaMaintainCostDTOQuery(
     QueryBuilder<FhaMaintainCost> query)
 {
     return
         query.ApplyTo(_maintainCostRepository.GetAll().OfType<FhaMaintainCost>())
             .Select(p => new FhaMaintainCostDTO
             {
                 Id = p.Id,
                 EngineProperty = p.EngineProperty,
                 Jx = p.Jx,
                 YearBudgetRate = p.YearBudgetRate,
                 Rate = p.Rate,
                 AirHour = p.AirHour,
                 HourPercent = p.HourPercent,
                 Hour = p.Hour,
                 FhaFeeUsd = p.FhaFeeUsd,
                 FhaFeeRmb = p.FhaFeeRmb,
                 Custom = p.Custom,
                 CustomAddedRmb = p.CustomAddedRmb,
                 TotalTax = p.TotalTax,
                 AddedValueRate = p.AddedValueRate,
                 AddedValue = p.AddedValue,
                 IncludeAddedValue = p.IncludeAddedValue,
                 CustomAdded = p.CustomAdded,
                 AircraftTypeId = p.AircraftTypeId,
                 MaintainInvoiceId = p.MaintainInvoiceId,
                 Year = p.Year,
                 AcutalBudgetAmount = p.MaintainInvoice.PaymentScheduleLineId == null ? 0 : p.MaintainInvoice.PaymentScheduleLine.Amount,
                 AcutalAmount = p.MaintainInvoice.InvoiceValue
             });
 }
开发者ID:unicloud,项目名称:FRP,代码行数:36,代码来源:MaintainCostQuery.cs


示例3: AddSearchItem

 /// <summary>
 ///     add key=value into QueryModel.Items
 /// </summary>
 /// <param name="model">QueryModel</param>
 /// <param name="key">the name of Element (input/select/area/radio/checkbox)</param>
 /// <param name="val">the value of Element (input/select/area/radio/checkbox)</param>
 public static void AddSearchItem(QueryBuilder model, string key, string val)
 {
     if (model == null)
     {
         model = new QueryBuilder();
     }
     string orGroup = "";
     var keywords = key.Split("$', ')', '}".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
     if (keywords.Length != 2)
         return;
     var method = SearchMethodAdapter(keywords[0]);
     var field = keywords[1];
     if (string.IsNullOrEmpty(method)) return;
     if (!string.IsNullOrEmpty(field))
     {
         var item = new ConditionItem
         {
             Field = field,
             Value = val.Trim(),
             OrGroup = orGroup,
             Method = (QueryMethod)Enum.Parse(typeof(QueryMethod), method)
         };
         model.Items.Add(item);
     }
 }
开发者ID:NigelYu,项目名称:CommonQuery,代码行数:31,代码来源:QueryBuilderBinder.cs


示例4: AddSort

 public override void AddSort(object expr, IComparer comparer)
 {
     // sort makes sense only when we are dealing with a query that
     // returns a nodeset.
     Query evalExpr;
     string query = expr as string;
     if (query != null)
     {
         evalExpr = new QueryBuilder().Build(query, out _needContext); // this will throw if expr is invalid
     }
     else
     {
         CompiledXpathExpr xpathExpr = expr as CompiledXpathExpr;
         if (xpathExpr != null)
         {
             evalExpr = xpathExpr.QueryTree;
         }
         else
         {
             throw XPathException.Create(SR.Xp_BadQueryObject);
         }
     }
     SortQuery sortQuery = _query as SortQuery;
     if (sortQuery == null)
     {
         _query = sortQuery = new SortQuery(_query);
     }
     sortQuery.AddSort(evalExpr, comparer);
 }
开发者ID:Corillian,项目名称:corefx,代码行数:29,代码来源:CompiledXPathExpr.cs


示例5: SnHistoryDTOQuery

        /// <summary>
        ///     序号件装机历史查询。
        /// </summary>
        /// <param name="query">查询表达式。</param>
        /// <returns>序号件装机历史DTO集合。</returns>
        public IQueryable<SnHistoryDTO> SnHistoryDTOQuery(
            QueryBuilder<SnHistory> query)
        {
            var dbAircrafts = _unitOfWork.CreateSet<Aircraft>();

            return query.ApplyTo(_unitOfWork.CreateSet<SnHistory>()).Select(p => new SnHistoryDTO
            {
                Id = p.Id,
                Sn = p.Sn,
                SnRegId = p.SnRegId,
                Pn = p.Pn,
                PnRegId = p.PnRegId,
                CSN = p.CSN,
                TSN = p.TSN,
                CSN2 = p.CSN2,
                TSN2 = p.TSN2,
                Status = (int)p.Status,
                Position = (int)p.Position,
                AircraftId = p.AircraftId,
                ActionDate = p.ActionDate,
                ActionType = (int)p.ActionType,
                ActionNo = p.RemInstRecord.ActionNo,
                ActionReason = p.RemInstRecord.Reason,
                RemInstRecordId = p.RemInstRecordId,
                RegNumber = dbAircrafts.FirstOrDefault(c => c.Id == p.AircraftId).RegNumber,
            });
        }
开发者ID:unicloud,项目名称:FRP,代码行数:32,代码来源:SnHistoryQuery.cs


示例6: MaintainGuaranteeQuery

 public IQueryable<MaintainGuaranteeDTO> MaintainGuaranteeQuery(QueryBuilder<Guarantee> query)
 {
     var dbCurrency = _unitOfWork.CreateSet<Currency>();
     var dbMaintainContract = _unitOfWork.CreateSet<MaintainContract>();
     return
         query.ApplyTo(_unitOfWork.CreateSet<Guarantee>()).OfType<MaintainGuarantee>()
             .Select(p => new MaintainGuaranteeDTO
             {
                 GuaranteeId = p.Id,
                 Amount = p.Amount,
                 CreateDate = p.CreateDate,
                 CurrencyId = p.CurrencyId,
                 EndDate = p.EndDate,
                 OperatorName = p.OperatorName,
                 MaintainContractId = p.MaintainContractId,
                 ReviewDate = p.ReviewDate,
                 Reviewer = p.Reviewer,
                 StartDate = p.StartDate,
                 SupplierId = p.SupplierId,
                 SupplierName = p.SupplierName,
                 Status = (int)p.Status,
                 CurrencyName = dbCurrency.FirstOrDefault(c => c.Id == p.CurrencyId).CnName,
                 MaintainContractName = dbMaintainContract.FirstOrDefault(c=>c.Id==p.MaintainContractId).Name,
             });
 }
开发者ID:unicloud,项目名称:FRP,代码行数:25,代码来源:GuaranteeQuery.cs


示例7: MaintainCreditNoteDTOQuery

 /// <summary>
 ///    贷项单查询
 /// </summary>
 /// <param name="query">查询表达式。</param>
 /// <returns>贷项单DTO集合。</returns>
 public IQueryable<MaintainCreditNoteDTO> MaintainCreditNoteDTOQuery(
     QueryBuilder<MaintainCreditNoteInvoice> query)
 {
     return
         query.ApplyTo(_unitOfWork.CreateSet<MaintainCreditNoteInvoice>())
              .Select(p => new MaintainCreditNoteDTO
              {
                  CreditNoteId = p.Id,
                  InvoiceNumber = p.InvoiceNumber,
                  InvoideCode = p.InvoideCode,
                  InvoiceDate = p.InvoiceDate,
                  SupplierName = p.SupplierName,
                  SupplierId = p.SupplierId,
                  InvoiceValue = p.InvoiceValue,
                  PaidAmount = p.PaidAmount,
                  OperatorName = p.OperatorName,
                  Reviewer = p.Reviewer,
                  CreateDate = p.CreateDate,
                  ReviewDate = p.ReviewDate,
                  IsValid = p.IsValid,
                  IsCompleted = p.IsCompleted,
                  Status = (int)p.Status,
                  CurrencyId = p.CurrencyId,
                  PaymentScheduleLineId = p.PaymentScheduleLineId,
                  InvoiceLines = p.InvoiceLines.Select(q => new InvoiceLineDTO
                  {
                      InvoiceLineId = q.Id,
                      ItemName = (int)q.ItemName,
                      Amount = q.Amount,
                      InvoiceId = q.InvoiceId,
                      OrderLineId = q.OrderLineId,
                      Note = q.Note,
                  }).ToList(),
              });
 }
开发者ID:unicloud,项目名称:FRP,代码行数:40,代码来源:CreditNoteQuery.cs


示例8: PurchaseContractAircraftDTOQuery

 /// <summary>
 ///    采购合同飞机查询
 /// </summary>
 /// <param name="query">查询表达式。</param>
 /// <returns>采购合同飞机DTO集合。</returns>
 public IQueryable<PurchaseContractAircraftDTO> PurchaseContractAircraftDTOQuery(
     QueryBuilder<PurchaseContractAircraft> query)
 {
     return
     query.ApplyTo(_unitOfWork.CreateSet<ContractAircraft>().OfType<PurchaseContractAircraft>())
              .Select(p => new PurchaseContractAircraftDTO
              {
                  PurchaseContractAircraftId = p.Id,
                  ContractName = p.ContractName,
                  ContractNumber = p.ContractNumber,
                  RankNumber = p.RankNumber,
                  CSCNumber = p.CSCNumber,
                  SerialNumber = p.SerialNumber,
                  IsValid = p.IsValid,
                  ReceivedAmount = p.ReceivedAmount,
                  AcceptedAmount = p.AcceptedAmount,
                  AircraftTypeId = p.AircraftTypeId,
                  AircraftTypeName = p.AircraftType.Name,
                  PlanAircraftID = p.PlanAircraftID,
                  ImportCategoryId = p.ImportCategoryId,
                  ImportType = p.ImportCategory.ActionType,
                  ImportActionName = p.ImportCategory.ActionName,
                  SupplierId = p.SupplierId,
              });
 }
开发者ID:unicloud,项目名称:FRP,代码行数:30,代码来源:PurchaseContractAircraftQuery.cs


示例9: addID

 public static void addID(QueryBuilder filter, string opLeft, PLMultiChoiceGrid input)
 {
     if (!input._IsNotCheckAnyOrCheckedAll)
     {
         filter.addID(opLeft, input._GetSelectedIds());
     }
 }
开发者ID:khanhdtn,项目名称:did-vlib-2011,代码行数:7,代码来源:AppCtrl.cs


示例10: AircraftConfigurationDTOQuery

 /// <summary>
 ///     飞机配置查询。
 /// </summary>
 /// <param name="query">查询表达式。</param>
 /// <returns>飞机配置DTO集合。</returns>
 public IQueryable<AircraftConfigurationDTO> AircraftConfigurationDTOQuery(
     QueryBuilder<AircraftConfiguration> query)
 {
     return query.ApplyTo(_unitOfWork.CreateSet<AircraftConfiguration>()).Select(p => new AircraftConfigurationDTO
     {
         Id = p.Id,
         AircraftSeriesId = p.AircraftSeriesId,
         AircraftTypeId = p.AircraftTypeId,
         BEW = p.BEW,
         BW = p.BW,
         BWF = p.BWF,
         BWI = p.BWI,
         ConfigCode = p.ConfigCode,
         Description = p.Description,
         FileContent = p.FileContent,
         FileName = p.FileName,
         MCC = p.MCC,
         MLW = p.MLW,
         MMFW = p.MMFW,
         MTOW = p.MTOW,
         MTW = p.MTW,
         MZFW = p.MZFW,
         AircraftCabins = p.AircraftCabins.Select(q=>new AircraftCabinDTO
                                                  {
                                                      Id = q.Id,
                                                      AircraftCabinTypeId = q.AircraftCabinTypeId,
                                                      SeatNumber = q.SeatNumber,
                                                      Note = q.Note
                                                  }).ToList(),
     });
 }
开发者ID:unicloud,项目名称:FRP,代码行数:36,代码来源:AircraftConfigurationQuery.cs


示例11: AircraftLeaseOrderQuery

 /// <summary>
 ///     <see cref="IOrderQuery" />
 /// </summary>
 /// <param name="query">
 ///     <see cref="IOrderQuery" />
 /// </param>
 /// <returns>
 ///     <see cref="IOrderQuery" />
 /// </returns>
 public IQueryable<AircraftLeaseOrderDTO> AircraftLeaseOrderQuery(QueryBuilder<Order> query)
 {
     var trades = _unitOfWork.CreateSet<Trade>();
     var result = query.ApplyTo(_orderRepository.GetAll().OfType<AircraftLeaseOrder>().Where(p => p.IsValid))
         .Select(o => new AircraftLeaseOrderDTO
         {
             Id = o.Id,
             Name = o.Name,
             Version = o.Version,
             CurrencyId = o.Currency.Id,
             OperatorName = o.OperatorName,
             OrderDate = o.OrderDate,
             Status = (int) o.Status,
             Note = o.Note,
             SupplierId = trades.FirstOrDefault(p => p.Id == o.TradeId).SupplierId,
             SupplierName = trades.FirstOrDefault(p => p.Id == o.TradeId).Supplier.CnName,
             AircraftLeaseOrderLines =
                 o.OrderLines.OfType<AircraftLeaseOrderLine>().Select(l => new AircraftLeaseOrderLineDTO
                 {
                     Id = l.Id,
                     UnitPrice = l.UnitPrice,
                     Amount = l.Amount,
                     Discount = l.Discount,
                     EstimateDeliveryDate = l.EstimateDeliveryDate,
                     Note = l.Note,
                     ContractAircraftId = l.ContractAircraftId,
                     OrderId = l.OrderId,
                     TotalLine = (l.UnitPrice*l.Amount)*(1 - (l.Discount/100M)),
                 }).ToList(),
         });
     return result;
 }
开发者ID:unicloud,项目名称:FRP,代码行数:41,代码来源:OrderQuery.cs


示例12: PLBuildQueryFilter

        public override QueryBuilder PLBuildQueryFilter()
        {
            QueryBuilder filter = new QueryBuilder(BIEN_MUC.FILTER_STRING);
            filter.addSoPhieu(BIEN_MUC.MA_BANG, MaBang.Text);
            filter.addLike("LOWER(" + BIEN_MUC.NOI_DUNG + ")", NoiDung.Text.ToLower());
            AppCtrl.addID(filter, BIEN_MUC.SO_DKCB_HD, SoDKHDCB);
            AppCtrl.addID(filter, BIEN_MUC.TIET_MUC, TietMuc);
            AppCtrl.addID(filter, BIEN_MUC.LOAI_LUU_TRU, LoaiBang);
            AppCtrl.addID(filter, BIEN_MUC.DON_VI_CUNG_CAP, DonViCungCap);
            AppCtrl.addID(filter, BIEN_MUC.DON_VI_SO_HUU, DonViSoHuu);
            filter.addIn(BIEN_MUC.POST_MASTER, AppCtrl.GetCheckedValues(TinhTrang, true));
            filter.addIn(BIEN_MUC.IS_THANH_LY, AppCtrl.GetCheckedValues(ThanhLy, true));
            AppCtrl.addFilterFromTo(filter, BIEN_MUC.NGAY_NHAP, ngayNhap);
            AppCtrl.addFilterFromTo(filter, BIEN_MUC.NAM_SAN_XUAT, NamSXTu.Value, NamSXDen.Value);
            long[] IDs = QuocGia._getSelectedIDs();
            if (IDs.Length > 0 && IDs.Length < QuocGia.Properties.GetItems().Count)
            {
                string cond = "(";
                foreach (long id in IDs)
                {
                    cond += BIEN_MUC.NUOC_SAN_XUAT + " like '%," + id + ",%' or ";
                }
                cond = cond.TrimEnd(' ', 'r', 'o');
                cond = cond += ")";
                filter.addCondition(cond);
            }
            filter.addCondition("1=1");
            filter.setDescOrderBy(BIEN_MUC.NGAY_CAP_NHAT);

            return filter;
        }
开发者ID:khanhdtn,项目名称:did-vlib-2011,代码行数:31,代码来源:frmBienMucTimPopupBanded.cs


示例13: getFields

 public static List<ParamField> getFields()
 {
     QueryBuilder query = new QueryBuilder(@"
             SELECT
                 rf.rdb$field_name, rf.rdb$description,
                 f.rdb$field_type, f.rdb$field_length
             FROM rdb$relation_fields rf
                 join rdb$relations r
                 on rf.rdb$relation_name = r.rdb$relation_name
                 join rdb$fields f
                 on f.rdb$field_name = rf.rdb$field_source
                 left join rdb$types t
                 on t.rdb$type = f.rdb$field_type
                 and t.rdb$field_name = 'RDB$FIELD_TYPE'
             WHERE
                 r.rdb$view_blr is null and
                 (r.rdb$system_flag is null or r.rdb$system_flag=0) and
                 rf.rdb$relation_name = 'FW_REPORT_PARAMS'
                 and rf.rdb$field_name <> '" + KEY_FIELD_NAME + "' and 1=1");
     DataSet ds = DABase.getDatabase().LoadDataSet(query);
     List<ParamField> list = new List<ParamField>();
     foreach (DataRow dr in ds.Tables[0].Rows)
     {
         ParamField field = new ParamField();
         field.FIELD_NAME = dr["RDB$FIELD_NAME"].ToString().Trim();
         field.DESCRIPTION = dr["RDB$DESCRIPTION"].ToString();
         field.FIELD_TYPE = HelpNumber.ParseInt32(dr["RDB$FIELD_TYPE"]);
         field.FIELD_LENGTH = HelpNumber.ParseInt64(dr["RDB$FIELD_LENGTH"]);
         list.Add(field);
     }
     return list;
 }
开发者ID:khanhdtn,项目名称:my-fw-win,代码行数:32,代码来源:frmAppReportParamsHelp.cs


示例14: BaseQuery

 public string BaseQuery(bool selectTop, int top)
 {
     QueryBuilder builder;
     try
     {
         builder = new QueryBuilder();
         if (selectTop == true)
             builder.SelectTop(top);
         else
             builder.Select();
         builder.AppendColumn(TaskObject.TASK_ID);
         builder.AppendColumn(TaskObject.TAG);
         builder.AppendColumn(TaskObject.CREATION_DATE);
         builder.AppendColumn(TaskObject.UPDATE_DATE);
         builder.AppendColumn(TaskObject.DUE_DATE);
         builder.AppendColumn(TaskObject.STATUS);
         builder.AppendColumn(TaskObject.PRIORITY);
         builder.AppendColumn(TaskObject.EFFORT);
         builder.AppendFromTable(TaskObject.TABLE);
         return builder.Query;
     }
     catch (System.Exception exception1)
     {
         Exception innerException = exception1;
         throw new Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
开发者ID:GianiWVL,项目名称:VUYLSTEKE,代码行数:27,代码来源:TaskDataService.cs


示例15: PaymentNoticeDTOQuery

 /// <summary>
 ///  付款通知查询。
 /// </summary>
 /// <param name="query">查询表达式。</param>
 /// <returns>付款通知DTO集合。</returns>
 public IQueryable<PaymentNoticeDTO> PaymentNoticeDTOQuery(QueryBuilder<PaymentNotice> query)
 {
     return
         query.ApplyTo(_paymentNoticeRepository.GetAll()).Select(p => new PaymentNoticeDTO
                          {
                              PaymentNoticeId = p.Id,
                              NoticeNumber = p.NoticeNumber,
                              CreateDate = p.CreateDate,
                              DeadLine = p.DeadLine,
                              SupplierName = p.SupplierName,
                              OperatorName = p.OperatorName,
                              Reviewer = p.Reviewer,
                              ReviewDate = p.ReviewDate,
                              Status = (int)p.Status,
                              SupplierId = p.SupplierId,
                              CurrencyId = p.CurrencyId,
                              CurrencyName = p.Currency.CnName,
                              BankAccountName = p.BankAccount.Account + "/" + p.BankAccount.Bank + p.BankAccount.Branch,
                              BankAccountId = p.BankAccountId,
                              IsComplete = p.IsComplete,
                              PaymentNoticeLines =
                                  p.PaymentNoticeLines.Select(q => new PaymentNoticeLineDTO
                                                                     {
                                                                         PaymentNoticeLineId = q.Id,
                                                                         InvoiceType = (int)q.InvoiceType,
                                                                         InvoiceId = q.InvoiceId,
                                                                         InvoiceNumber = q.InvoiceNumber,
                                                                         Amount = q.Amount,
                                                                         Note = q.Note
                                                                     }).ToList(),
                          });
 }
开发者ID:unicloud,项目名称:FRP,代码行数:37,代码来源:PaymentNoticeQuery.cs


示例16: AirProgrammingDTOQuery

 /// <summary>
 ///     航空公司五年规划查询。
 /// </summary>
 /// <param name="query">查询表达式。</param>
 /// <returns>航空公司五年规划DTO集合。</returns>
 public IQueryable<AirProgrammingDTO> AirProgrammingDTOQuery(
     QueryBuilder<AirProgramming> query)
 {
     return query.ApplyTo(_unitOfWork.CreateSet<AirProgramming>()).Select(p => new AirProgrammingDTO
     {
         Id = p.Id,
         CreateDate = p.CreateDate,
         DocName = p.DocName,
         DocumentId = p.DocumentId,
         IssuedDate = p.IssuedDate,
         IssuedUnitId = p.IssuedUnitId,
         Name = p.Name,
         Note = p.Note,
         ProgrammingId = p.ProgrammingId,
         ProgrammingName = p.Programming.Name,
         AirProgrammingLines = p.AirProgrammingLines.Select(q=>new AirProgrammingLineDTO
         {
             Id = q.Id,
             AircraftSeriesId = q.AircraftSeriesId,
             AirProgrammingId = q.AirProgrammingId,
             BuyNum = q.BuyNum,
             ExportNum = q.ExportNum,
             LeaseNum = q.LeaseNum,
             Year = q.Year,
         }).ToList(),
     });
 }
开发者ID:unicloud,项目名称:FRP,代码行数:32,代码来源:AirProgrammingQuery.cs


示例17: AddToQuery

        public void AddToQuery(AuditConfiguration verCfg, String entityName, QueryBuilder qb, Parameters parameters)
        {
            Parameters opParameters = parameters.AddSubParameters(op);

            lhs.AddToQuery(verCfg, entityName, qb, opParameters.AddSubParameters("and"));
            rhs.AddToQuery(verCfg, entityName, qb, opParameters.AddSubParameters("and"));
        }
开发者ID:hazzik,项目名称:nh-contrib-everything,代码行数:7,代码来源:LogicalAuditExpression.cs


示例18: BaseQuery

 public string BaseQuery(bool selectTop, int top)
 {
     QueryBuilder builder;
     try
     {
         builder = new QueryBuilder();
         if (selectTop == true)
             builder.SelectTop(top);
         else
             builder.Select();
         builder.AppendColumn(MaintenanceVehicleObject.MAINTVEH_ID);
         builder.AppendColumn(MaintenanceVehicleObject.EMPID_EXECUTOR);
         builder.AppendColumn(MaintenanceVehicleObject.REMARK);
         builder.AppendColumn(MaintenanceVehicleObject.VEH_ID);
         builder.AppendColumn(MaintenanceVehicleObject.START_MAINTENANCE);
         builder.AppendFromTable(MaintenanceVehicleObject.TABLE);
         builder.AppendInnerJoin(VehicleObject.TABLE, VehicleObject.VEHID, MaintenanceVehicleObject.VEH_ID);
         builder.AppendLeftJoin(EmployeeObject.TABLE, EmployeeObject.EMP_ID, MaintenanceVehicleObject.EMPID_EXECUTOR);
         return builder.Query;
     }
     catch (System.Exception exception1)
     {
         Exception innerException = exception1;
         throw new Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
开发者ID:GianiWVL,项目名称:VUYLSTEKE,代码行数:26,代码来源:MaintenanceVehicleDataService.cs


示例19: BaseQuery

 public string BaseQuery(bool selectTop, int top)
 {
     QueryBuilder builder;
     try
     {
         builder = new QueryBuilder();
         if (selectTop == true)
             builder.SelectTop(top);
         else
             builder.Select();
         builder.AppendColumn(ScheduleObject.SCHED_ID);
         builder.AppendColumn(ScheduleObject.FREQUENCY);
         builder.AppendColumn(ScheduleObject.MONDAY);
         builder.AppendColumn(ScheduleObject.TUESDAY);
         builder.AppendColumn(ScheduleObject.WEDNESDAY);
         builder.AppendColumn(ScheduleObject.THURSDAY);
         builder.AppendColumn(ScheduleObject.FRIDAY);
         builder.AppendColumn(ScheduleObject.WEDNESDAY);
         builder.AppendColumn(ScheduleObject.SATERDAY);
         builder.AppendColumn(ScheduleObject.SUNDAY);
         builder.AppendColumn(ScheduleObject.STARTDATE);
         builder.AppendColumn(ScheduleObject.TIME);
         builder.AppendColumn(ScheduleObject.LAST_SEND);
         builder.AppendFromTable(ScheduleObject.TABLE);
         return builder.Query;
     }
     catch (System.Exception exception1)
     {
         Exception innerException = exception1;
         throw new Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
开发者ID:GianiWVL,项目名称:VUYLSTEKE,代码行数:32,代码来源:ScheduleDataService.cs


示例20: BaseQuery

 public string BaseQuery(bool selectTop, int top)
 {
     QueryBuilder builder;
     try
     {
         builder = new QueryBuilder();
         if (selectTop == true)
             builder.SelectTop(top);
         else
             builder.Select();
         builder.AppendColumn(PopupUserObject.POPUPUSER_ID);
         builder.AppendColumn(PopupUserObject.POPUP_ID);
         builder.AppendColumn(PopupUserObject.USER_ID);
         builder.AppendColumn(PopupObject.POPUP_ID);
         builder.AppendColumn(PopupObject.DESCRIPTION);
         builder.AppendColumn(PopupObject.REPEAT);
         builder.AppendColumn(PopupObject.ACTIVE);
         builder.AppendColumn(PopupObject.CREATIONDATE);
         builder.AppendColumn(PopupObject.TIME);
         builder.AppendColumn(PopupObject.SHOW_DIRECT);
         builder.AppendColumn(UserObject.USR_ID);
         builder.AppendFromTable(PopupUserObject.TABLE);
         builder.AppendLeftJoin(PopupObject.TABLE, PopupUserObject.POPUP_ID, PopupObject.POPUP_ID);
         builder.AppendLeftJoin(UserObject.TABLE, PopupUserObject.USER_ID, UserObject.USR_ID);
         return builder.Query;
     }
     catch (System.Exception exception1)
     {
         Exception innerException = exception1;
         throw new Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
开发者ID:GianiWVL,项目名称:VUYLSTEKE,代码行数:32,代码来源:PopupUserDataService.cs



注:本文中的QueryBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# QueryBuilder.SQLInsertRow类代码示例发布时间:2022-05-24
下一篇:
C# Query类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap