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

C# QueryType类代码示例

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

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



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

示例1: QuerySwitch

        public DataTable QuerySwitch(QueryType QT,
                                     ArrayList ParameterList
                                     )
        {
            DBO.VDM_VCMSLevelDBO dbo = new VDM_VCMSLevelDBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.ALL:
                        Dt = dbo.doQueryAll();
                        break;
                    case QueryType.CODE:
                        Dt = dbo.doQueryByCode(ParameterList);
                        break;
                    case QueryType.ID:
                        Dt = dbo.doQueryByID(ParameterList);
                        break;
                    case QueryType.Custom:
                        Dt = dbo.doQueryByFind(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:35,代码来源:MaintainVCMSLevel.cs


示例2: QuerySwitch

        public DataTable QuerySwitch(QueryType QT,
                                     ArrayList ParameterList
                                     )
        {
            DBO.RemoveDataDetail dbo = new RemoveDataDetail(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.ALL:
                        Dt = dbo.doQueryAll();
                        break;
                    
                    case QueryType.ID:
                        Dt = dbo.doQueryByID(ParameterList);
                        break;
                    case QueryType.Custom:
                        Dt = dbo.doQueryByFind(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:33,代码来源:MaintainRemoveDataDetail.cs


示例3: QuerySwitch

        public DataTable QuerySwitch(QueryType QT,
                                     ArrayList ParameterList
                                     )
        {
            DBO.MKT_PurchaseCardNondissStDBO dbo = new MKT_PurchaseCardNondissStDBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.ALL:
                        Dt = dbo.doQueryAll();
                        break;
                    case QueryType.ID:
                        Dt = dbo.doQueryByID(ParameterList);
                        break;
                    case QueryType.Custom:
                        Dt = dbo.doQueryByFind(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:32,代码来源:MaintainPurchaseCardNondissSt+.cs


示例4: QuerySwitch

        public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
        {
            #region
            VDS_ALO_POSOURCE_NO_TMP_DBO ALOM = new VDS_ALO_POSOURCE_NO_TMP_DBO(ref USEDB);

            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.CheckCurrentItemStatus:
                        Dt = ALOM.doCheckCurrentItemStatus(ParameterList);
                        break;
                    case QueryType.GetPOSOURCE_NO_TmpSchema:
                        Dt = ALOM.GetPOSOURCE_NO_TmpSchema(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw GetNewException(ex);
            }
            #endregion
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:30,代码来源:ImportChainPO.cs


示例5: QuerySwitch

        public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
        {
            DBO.VDS_CRM_RECORD_MAINDBO VCRM = new VDS_CRM_RECORD_MAINDBO(ref USEDB);
            DBO.VDS_CRM_RECORD_DETLDBO VCRD = new VDS_CRM_RECORD_DETLDBO(ref USEDB);

            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.QueryLastThreeCRMRecord:
                        Dt = VCRM.DO_CRM011_QUERY_RECORD_THREE(ParameterList);
                        break;
                    case QueryType.CRM011_DETL_SCHEMA:
                        Dt = VCRD.DO_CRM011_DETAIL_SCHEMA(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw GetNewException(ex);
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:29,代码来源:RecordCRMRecord.cs


示例6: Query

	    public Query(QueryType type, long token, ReqlAst term, OptArgs globalOptions)
		{
			this.Type = type;
			this.Token = token;
			this.Term = term;
			this.GlobalOptions = globalOptions;
		}
开发者ID:cadabloom,项目名称:RethinkDb.Driver,代码行数:7,代码来源:Query.cs


示例7: Lambda

        /// <summary>
        /// Creates a LinqLambdaType given the body type and parameter types.
        /// </summary>
        /// <param name="bodyType">Type of the lambda body.</param>
        /// <param name="parameterTypes">Collection of lambda parameter types.</param>
        /// <returns>LinqLambdaType with given body and parameter types.</returns>
        public static LinqLambdaType Lambda(QueryType bodyType, IEnumerable<QueryType> parameterTypes)
        {
            ExceptionUtilities.CheckArgumentNotNull(bodyType, "bodyType");
            ExceptionUtilities.CheckArgumentNotNull(parameterTypes, "parameterTypes");

            return new LinqLambdaType(bodyType, parameterTypes, bodyType.EvaluationStrategy);
        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:13,代码来源:LinqTypes.cs


示例8: Query

 /// <summary>
 /// Инициализирует новый запрос
 /// </summary>
 /// <param name="type">Тип запроса</param>
 /// <param name="sql">Текст запроса</param>
 /// <param name="storedProcedure">Является ли хранимой процедурой</param>
 /// <param name="parameters">Параметры запроса</param>
 public Query(QueryType type, string sql, bool storedProcedure, params DbParam[] parameters)
 {
     Sql = sql;
     Parameters = parameters;
     Type = type;
     StoredProcedure = storedProcedure;
 }
开发者ID:qrunner,项目名称:Default,代码行数:14,代码来源:Query.cs


示例9: SQLWriter

 public SQLWriter(Servers server, QueryType queryType, String tableName, int buffSize = 100)
 {
     m_queryType = queryType;
     m_buffSize = buffSize;
     m_server = server;
     m_tableName = tableName;
 }
开发者ID:ExShini,项目名称:workRep,代码行数:7,代码来源:SQLWriter.cs


示例10: QuerySwitchLine

        public DataTable QuerySwitchLine(QueryType QT, ArrayList ParameterList)
        {
            DBO.VDS_ITM_PERIOD_MAIN_DBO STDM = new VDS_ITM_PERIOD_MAIN_DBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.ITEM_PERIOD:
                        Dt = STDM.doQueryByFind(ParameterList);
                        break;

                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:25,代码来源:MaintainSTDImport.cs


示例11: QuerySwitch

        public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
        {
            DBO.STD_IMPORT_DBO STDM = new STD_IMPORT_DBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.CHAN_NO:
                        Dt = STDM.doQueryByChanNo(ParameterList);
                        break;
                   
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:25,代码来源:MaintainSTDImport.cs


示例12: StQuerySwitch

        public string StQuerySwitch(QueryType QT, ArrayList ParameterList, out string errMsg)
        {
            CGD.VDS_CGD23_DBO CGDM = new VDS_CGD23_DBO(ref USEDB);
            string str;
            string ErrMsg = "";

            try
            {
                switch (QT)
                {
                    case QueryType.GetMaxPickBatch:
                        str = CGDM.GetMaxPickBatch(ParameterList, out ErrMsg);
                        errMsg = ErrMsg;
                        break;

                    case QueryType.GetCheckBatch:
                        str = CGDM.GetCheckBatch(ParameterList, out ErrMsg);
                        errMsg = ErrMsg;
                        break;

                    default:
                        str = "";
                        errMsg = "";
                        break;
                }
                return str;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:32,代码来源:ProcessPickQualityCheck.cs


示例13: QuerySwitch

        public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
        {
            CGD.VDS_CGD41_DBO CGDM = new VDS_CGD41_DBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.GetPickBatch:
                        Dt = CGDM.GetPickBatch(ParameterList);
                        break;

                    case QueryType.Label:
                        Dt = CGDM.ExpLabelData(ParameterList);
                        break;

                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:29,代码来源:VDS_CGD41_BCO.cs


示例14: QuerySwitch

        public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
        {
            #region
            VDS_ALO_DISRECORD_TMP_DBO ALOM = new VDS_ALO_DISRECORD_TMP_DBO(ref USEDB);

            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.GetDISRECORD_TmpSchema:
                        Dt = ALOM.GetDISRECORD_TmpSchema(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw GetNewException(ex);
            }
            #endregion
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:27,代码来源:ImportDisRecord.cs


示例15: BuildDataQuery

        /// <summary>
        /// Build data query from the specified <paramref name="queryType"/>
        /// </summary>
        /// <param name="queryType">
        /// The query type.
        /// </param>
        /// <param name="structureRetrievalManager">
        /// The structure retrieval manager.
        /// </param>
        /// <returns>
        /// The data query from the specified <paramref name="queryType"/>
        /// </returns>
        public IList<IDataQuery> BuildDataQuery(
            QueryType queryType, ISdmxObjectRetrievalManager structureRetrievalManager)
        {
            IList<IDataQuery> returnList = new List<IDataQuery>();

            foreach (DataWhereType dataWhere in queryType.DataWhere)
            {
                // TODO java 0.9.9 no support for default limit. Opened : http://www.metadatatechnology.com/mantis/view.php?id=1427
                DataQueryProcessor dataQueryProcessor = null;

                if (queryType.defaultLimit.HasValue && queryType.defaultLimit.Value < int.MaxValue)
                {
                    int limit = decimal.ToInt32(queryType.defaultLimit.Value);
                    dataQueryProcessor = new DataQueryProcessor(limit);
                }
                else
                {
                    dataQueryProcessor = new DataQueryProcessor();
                }

                returnList.Add(dataQueryProcessor.BuildDataQuery(dataWhere, structureRetrievalManager));
            }

            return returnList;
        }
开发者ID:SDMXISTATFRAMEWORK,项目名称:ISTAT_ENHANCED_SDMXRI_WS,代码行数:37,代码来源:DataQueryBuilderV2.cs


示例16: BuildQuery

        public static Uri BuildQuery(QueryType type,string url,string query)
        {
            UriBuilder bldr = new UriBuilder(url);
            switch (type)
            {
                case QueryType.Search:
                    string restQuery = "";

                    if (url.EndsWith("/") != true)
                    {
                        restQuery = "/";
                    }

                    restQuery += "_api/search/query";

                    bldr.Path += restQuery;

                    bldr.Query = "querytext='" + query + "'";
                    break;
                case QueryType.Lists:
                    break;
                default:
                    break;
            }
            return bldr.Uri;
        }
开发者ID:ricardocarneiro,项目名称:sharepoint-4,代码行数:26,代码来源:QueryStringHelper.cs


示例17: QueryTypeToString

 /// <summary>
 /// 查询类型转化成字符串
 /// </summary>
 /// <param name="type">查询类型</param>
 /// <returns>查询类型字符串</returns>
 public static string QueryTypeToString(QueryType type)
 {
     string s = "INSURANCE";
     switch (type)
     {
         case QueryType.INSURANCE:
             s = "INSURANCE";
             break;
         case QueryType.QEONYCARD:
             s = "QEONYCARD";
             break;
         case QueryType.ASSET:
             s = "ASSET";
             break;
         case QueryType.NETSITE:
             s = "NETSITE";
             break;
         case QueryType.EXCHANGE_CH:
             s = "EXCHANGE_CH";
             break;
         case QueryType.EXCHANGE_EN:
             s = "EXCHANGE_EN";
             break;
         default:
             s = "INSURANCE";
             break;
     }
     return s;
 }
开发者ID:PhilTheAir,项目名称:Aspnet,代码行数:34,代码来源:TableQueryFactory.cs


示例18: GetIPHostEntry

        /// <summary>
        /// Get IPHostEntry for given domainName.
        /// </summary>
        /// <param name="domainName">domainName</param>
        /// <param name="queryType">QueryType.Address or QueryType.MailExchange</param>
        /// <param name="dnsServers">dnsServers</param>
        /// <returns></returns>
        public static IPHostEntry GetIPHostEntry(string domainName, QueryType queryType, string[] dnsServers)
        {
            if (String.IsNullOrEmpty(domainName))
            {
                throw new ArgumentException("Domain name is empty.", "domainName");
            }
            DnsServers.Clear();
            if (dnsServers != null)
            {
                foreach (string dnsServer in dnsServers)
                {
                    DnsServers.Add(IPAddress.Parse(dnsServer));
                }
            }
            DnsServers.AddRange(RootDnsServers);

            int retry = 0;
            while (retry < 10)
            {
                foreach (IPAddress dnsServer in DnsServers)
                {
                    IPHostEntry ip = GetIPHostEntry(domainName, queryType, dnsServer);
                    if (ip != null)
                    {
                        return ip;
                    }
                }
                retry++;
            }
            return null;
        }
开发者ID:xxy1991,项目名称:cozy,代码行数:38,代码来源:DomainNameUtil.cs


示例19: QuerySwitch

        public DataTable QuerySwitch(QueryType QT,
                                     ArrayList ParameterList
                                     )
        {
            DBO.PUR_PurchaseOrderDBO dbo = new PUR_PurchaseOrderDBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    //case QueryType.ALL:
                    //    Dt = dbo.doQueryAll();
                    //    break;
                    //case QueryType.CODE:
                    //    Dt = dbo.doQueryByCode(ParameterList);
                    //    break;
                    case QueryType.PK:
                        Dt = dbo.GetMasterByPK(ParameterList);
                        break;
                    case QueryType.Where1:
                        Dt = dbo.GetMainByWhere1(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:35,代码来源:MaintainPurchaseOrder.cs


示例20: QueryBuilder

        /// <summary>
        /// Initializes a new instance of the <see cref="QueryBuilder"/> class.
        /// </summary>
        /// <param name="type">The requested <see cref="QueryType"/>.</param>
        internal QueryBuilder(QueryType type)
        {
            this.type = type;
            builder = new StringBuilder();

            Init();
        }
开发者ID:vetmar81,项目名称:PerformanceTracker,代码行数:11,代码来源:QueryBuilder.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Quest类代码示例发布时间:2022-05-24
下一篇:
C# QueryToken类代码示例发布时间: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