当前位置: 首页>>代码示例>>C#>>正文


C# SQLHandler.ExecuteAsList方法代码示例

本文整理汇总了C#中SQLHandler.ExecuteAsList方法的典型用法代码示例。如果您正苦于以下问题:C# SQLHandler.ExecuteAsList方法的具体用法?C# SQLHandler.ExecuteAsList怎么用?C# SQLHandler.ExecuteAsList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SQLHandler的用法示例。


在下文中一共展示了SQLHandler.ExecuteAsList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: BindGridOnPageLoad

        private void BindGridOnPageLoad()
        {
            try
            {

                bool Issystem = true;

                List<KeyValuePair<string, object>> ParaMeterCollection = new List<KeyValuePair<string, object>>();
                ParaMeterCollection.Add(new KeyValuePair<string, object>("@PortalID", -1));
                ParaMeterCollection.Add(new KeyValuePair<string, object>("@Culture", GetCurrentCultureName));

                SQLHandler sqlH = new SQLHandler();
                List<sp_GetDefaultListResult> defaultList = sqlH.ExecuteAsList<sp_GetDefaultListResult>("dbo.sp_GetDefaultList", ParaMeterCollection);
                
                //var defaultList = dbList.sp_GetDefaultList(-1,GetCurrentCultureName);
                //{
                foreach (sp_GetDefaultListResult topList in defaultList)
                {
                    BindGrid(topList.ListName, topList.ParentKey);//culture
                    //var listSystemCheck = dbList.sp_GetListsByPortalID(-1, GetCurrentCultureName);

                    List<sp_GetListsByPortalIDResult> listSystemCheck = sqlH.ExecuteAsList<sp_GetListsByPortalIDResult>("dbo.sp_GetListsByPortalID", ParaMeterCollection);

                    foreach (sp_GetListsByPortalIDResult system in listSystemCheck)
                    {
                        if (system.ListName == topList.ListName)
                            Issystem = system.SystemList;
                    }
                    lblListName.Text = topList.ListName;
                    lblDeleteList.Text = "Delete "+topList.ListName+" List";
                    ViewState["PARENTKEY"] = topList.ParentKey;
                    ViewState["LISTNAME"] = topList.ListName;
                }


                if (Issystem == true)
                {
                    gdvSubList.Columns[4].Visible = false;

                }
                else
                {
                    gdvSubList.Columns[4].Visible = true;
                }
                lblParent.Visible = false;
                if (ViewState["LIST"] != null)
                {
                    lblEntry.Text = ViewState["LIST"].ToString() + " " + GetSageMessage("ListSettings", "Entries");
                }
                ViewMode();
                pnlListAll.Visible = true;
                //}
            }
            catch (Exception ex)
            {
                ProcessException(ex);
            }
        }
开发者ID:electrono,项目名称:veg-web,代码行数:58,代码来源:ctl_ListEditor.ascx.cs

示例2: GetAttributesInputType

 /// <summary>
 /// To Bind Attribute Type dropdown
 /// </summary>
 /// <returns></returns>
 public List<AttributesInputTypeInfo> GetAttributesInputType()
 {
     List<AttributesInputTypeInfo> ml = new List<AttributesInputTypeInfo>();
     SQLHandler Sq = new SQLHandler();
     ml = Sq.ExecuteAsList<AttributesInputTypeInfo>("dbo.usp_ASPX_AttributesInputTypeGetAll");
     return ml;
 }
开发者ID:electrono,项目名称:veg-web,代码行数:11,代码来源:ItemAttributesManagementSqlProvider.cs

示例3: GetPricingRuleAttributes

 public static List<PricingRuleAttributeInfo> GetPricingRuleAttributes(AspxCommonInfo aspxCommonObj)
 {
     SQLHandler sqlHandler = new SQLHandler();
     List<KeyValuePair<string, object>> paramList = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
     List<PricingRuleAttributeInfo> lstPriceRuleAttr = sqlHandler.ExecuteAsList<PricingRuleAttributeInfo>("usp_Aspx_GetPricingRuleAttr", paramList);
     return lstPriceRuleAttr;
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:7,代码来源:AspxCatalogPriceRuleProvider.cs

示例4: ContactUsGetAll

 public List<ContactUsInfo> ContactUsGetAll(int portalID)
 {
     List<KeyValuePair<string, object>> ParaMeterCollection = new List<KeyValuePair<string, object>>();
     ParaMeterCollection.Add(new KeyValuePair<string, object>("@PortalID", portalID));
     SQLHandler sqlH = new SQLHandler();
     return sqlH.ExecuteAsList<ContactUsInfo>("sp_ContactUsGetAll", ParaMeterCollection);
 }
开发者ID:RexSystemsbd,项目名称:SageFrameV2.1Source,代码行数:7,代码来源:ContactUsDataProvider.cs

示例5: GetAttributesInputType

 /// <summary>
 /// To Bind Attribute Type dropdown
 /// </summary>
 /// <returns></returns>
 public List<AttributesInputTypeInfo> GetAttributesInputType()
 {
     List<AttributesInputTypeInfo> ml;
     SQLHandler sqlH = new SQLHandler();
     ml = sqlH.ExecuteAsList<AttributesInputTypeInfo>("dbo.usp_Aspx_AttributesInputTypeGetAll");
     return ml;
 }
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:11,代码来源:ItemAttributesManagementSqlProvider.cs

示例6: GetStatesByCountry

 public List<States> GetStatesByCountry(string countryCode)
 {
     var sqlHandler = new SQLHandler();
     var paramList = new List<KeyValuePair<string, object>> { new KeyValuePair<string, object>("@CountryCode", countryCode) };
     List<States> cl = sqlHandler.ExecuteAsList<States>("usp_Aspx_GetStateList", paramList);
    return cl;
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:7,代码来源:RateController.cs

示例7: GetAdminModules

 public static List<LayoutMgrInfo> GetAdminModules(int PortalID)
 {
     SQLHandler SQLH = new SQLHandler();
     List<KeyValuePair<string, object>> ParaMeterCollection = new List<KeyValuePair<string, object>>();
     ParaMeterCollection.Add(new KeyValuePair<string, object>("@PortalID", PortalID));
     return SQLH.ExecuteAsList<LayoutMgrInfo>("[dbo].[usp_ModuleManagerGetAdminModules]",ParaMeterCollection);
 }
开发者ID:RexSystemsbd,项目名称:SageFrameV2.1Source,代码行数:7,代码来源:LayoutMgrDataProvider.cs

示例8: GetBreadCrumb

        /// <summary>
        /// Connects to database and gets breadcrumb.
        /// </summary>
        /// <param name="SEOName">SEOName</param>
        /// <param name="PortalID">PortalID</param>
        /// <param name="MenuId">MenuId</param>
        /// <param name="CultureCode">CultureCode</param>
        /// <returns>Returns BreadCrumInfo list </returns>
        public List<BreadCrumInfo> GetBreadCrumb(string SEOName, int PortalID, int MenuId, string CultureCode)
        {
            try
            {

                List<KeyValuePair<string, object>> ParaMeterCollection = new List<KeyValuePair<string, object>>();
                ParaMeterCollection.Add(new KeyValuePair<string, object>("@SEOName", SEOName));
                ParaMeterCollection.Add(new KeyValuePair<string, object>("@PortalID", PortalID));
                ParaMeterCollection.Add(new KeyValuePair<string, object>("@CultureCode", CultureCode));
                //if (MenuId != 0)
                //{
                //    ParaMeterCollection.Add(new KeyValuePair<string, object>("@MenuID", MenuId));
                //    SQLHandler SQLH = new SQLHandler();
                //    SQLH.ExecuteNonQuery("[dbo].[usp_BreadCrumbGetFromMenuItem]", ParaMeterCollection);
                //    return SQLH.ExecuteAsList<BreadCrumInfo>("usp_BreadCrumbMenuItemPath");
                //}
                //else
                //{
                SQLHandler SQLH = new SQLHandler();
                return SQLH.ExecuteAsList<BreadCrumInfo>("usp_BreadCrumbGetFromPageName", ParaMeterCollection);
                //}
            }
            catch (Exception)
            {

                throw;
            }

        }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:37,代码来源:BreadCrumDataProvider.cs

示例9: GetCategoryAll

 public static List<CategoryInfo> GetCategoryAll(bool isActive, AspxCommonInfo aspxCommonObj)
 {
     SQLHandler sqlHandler = new SQLHandler();
     List<KeyValuePair<string, object>> parameterCollection = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
     parameterCollection.Add(new KeyValuePair<string, object>("@IsActive", isActive));
     List<CategoryInfo> catList = sqlHandler.ExecuteAsList<CategoryInfo>("dbo.usp_Aspx_GetCategoryAll", parameterCollection);
     return catList;
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:8,代码来源:AspxCategoryManageProvider.cs

示例10: LoadOngdvTickerData

 public static List<TickerInfo> LoadOngdvTickerData(int StoreID,int PortalID)
 {
     List<KeyValuePair<string, object>> Parameter = new List<KeyValuePair<string, object>>();
     Parameter.Add(new KeyValuePair<string, object>("@StoreID", StoreID));
     Parameter.Add(new KeyValuePair<string, object>("@PortalID", PortalID));
     SQLHandler sqlHand = new SQLHandler();
     return sqlHand.ExecuteAsList<TickerInfo>("usp_TickerLoadData",Parameter);
 }
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:8,代码来源:TickerProvider.cs

示例11: GetAllTickerItem

 public List<TickerInfo> GetAllTickerItem(int StoreID, int PortalID)
 {
     List<KeyValuePair<string, object>> Parameter = new List<KeyValuePair<string, object>>();
     Parameter.Add(new KeyValuePair<string, object>("@StoreID", StoreID));
     Parameter.Add(new KeyValuePair<string, object>("@PortalID", PortalID));
     SQLHandler sqlH = new SQLHandler();
     return sqlH.ExecuteAsList<TickerInfo>("usp_TickerGetAllTickerItems", Parameter);
 }
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:8,代码来源:TickerProvider.cs

示例12: GetAllWareHouseById

 public static List<WareHouseAddress> GetAllWareHouseById(int wareHouseID, AspxCommonInfo aspxCommonObj)
 {
     List<KeyValuePair<string, object>> paramCol = CommonParmBuilder.GetParamSP(aspxCommonObj);
     paramCol.Add(new KeyValuePair<string, object>("@WareHouseID", wareHouseID));
     SQLHandler sageSQL = new SQLHandler();
     List<WareHouseAddress> wList = sageSQL.ExecuteAsList<WareHouseAddress>("[usp_Aspx_SelectWareHouseByID]", paramCol);
     return wList;
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:8,代码来源:AspxWareHouseProvider.cs

示例13: GetSpecialItems

 public List<SpecialItemsInfo> GetSpecialItems(AspxCommonInfo aspxCommonObj, int count)
 {
     List<KeyValuePair<string, object>> paramCol = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
     paramCol.Add(new KeyValuePair<string, object>("@count", count));
     SQLHandler sageSQL = new SQLHandler();
     List<SpecialItemsInfo> slInfo = sageSQL.ExecuteAsList<SpecialItemsInfo>("[dbo].[usp_Aspx_GetSpecialItems]", paramCol);
     return slInfo;
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:8,代码来源:SpecialItemsProvider.cs

示例14: GetStatesByCountry

 public static List<States> GetStatesByCountry(string countryCode)
 {
     SQLHandler sqlHandler = new SQLHandler();
     List<KeyValuePair<string, object>> paramList = new List<KeyValuePair<string, object>>();
     paramList.Add(new KeyValuePair<string, object>("@CountryCode", countryCode));
     List<States> lstState = sqlHandler.ExecuteAsList<States>("usp_Aspx_GetStateList", paramList);
     return lstState;
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:8,代码来源:AspxShipRateProvider.cs

示例15: GetPortalSeoName

 public List<PortalInfo> GetPortalSeoName(int portalID, string userName)
 {
     SQLHandler sqlHandler = new SQLHandler();
     List<KeyValuePair<string, object>> paramList = new List<KeyValuePair<string, object>>();
     paramList.Add(new KeyValuePair<string, object>("@PortalID", portalID));
     paramList.Add(new KeyValuePair<string, object>("@Username", userName));
     return sqlHandler.ExecuteAsList<PortalInfo>("sp_PortalGetByPortalID", paramList);
 }
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:8,代码来源:PriceRuleSqlProvider.cs


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