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


C# SQLHandler.ExecuteNonQueryAsBool方法代码示例

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


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

示例1: IsPageExists

        private bool IsPageExists(string pagename)
        {
            SQLHandler sqlH = new SQLHandler();
            var paramCol = new List<KeyValuePair<string, object>>();
            paramCol.Add(new KeyValuePair<string, object>("@PortalID", -1));
            paramCol.Add(new KeyValuePair<string, object>("@PageName", pagename));
            // paramCol.Add(new KeyValuePair<string, object>("@PageName", pagename));
            return sqlH.ExecuteNonQueryAsBool("[dbo].[usp_Aspx_CheckPaymentPage]", paramCol, "@IsExist");

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

示例2: CheckTaxClassUniqueness

 public static bool CheckTaxClassUniqueness(AspxCommonInfo aspxCommonObj, string taxItemClassName)
 {
     try
     {
         List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSPC(aspxCommonObj);
         parameter.Add(new KeyValuePair<string, object>("@TaxClassName", taxItemClassName));
         SQLHandler sqlh = new SQLHandler();
         bool isUnique = sqlh.ExecuteNonQueryAsBool("[usp_Aspx_CheckTaxClassUniqueness]", parameter, "@IsUnique");
         return isUnique;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:15,代码来源:AspxTaxMgntProvider.cs

示例3: CheckCouponStatusUniqueness

 public static bool CheckCouponStatusUniqueness(AspxCommonInfo aspxCommonObj, int couponStatusId, string couponStatusName)
 {
     try
     {
         SQLHandler sqlH = new SQLHandler();
         List<KeyValuePair<string, object>> Parameter = CommonParmBuilder.GetParamSPC(aspxCommonObj);
         Parameter.Add(new KeyValuePair<string, object>("@CouponStatusId", couponStatusId));
         Parameter.Add(new KeyValuePair<string, object>("@CouponStatusName", couponStatusName));
         bool isUnique = sqlH.ExecuteNonQueryAsBool("[dbo].[usp_Aspx_CheckCouponStatusUniquness]", Parameter, "@IsUnique");
         return isUnique;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:16,代码来源:AspxCouponStatusMgmtProvider.cs

示例4: CheckUniqueName

 public static bool CheckUniqueName(string catName, int catId, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         SQLHandler sqlH = new SQLHandler();
         List<KeyValuePair<string, object>> parameterCollection = CommonParmBuilder.GetParamSPC(aspxCommonObj);
         parameterCollection.Add(new KeyValuePair<string, object>("@CategoryName", catName));
         parameterCollection.Add(new KeyValuePair<string, object>("@CategoryID", catId));
         bool isUnique = sqlH.ExecuteNonQueryAsBool("dbo.usp_Aspx_CategoryNameUniquenessCheck", parameterCollection, "@IsUnique");
         return isUnique;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:16,代码来源:AspxCategoryManageProvider.cs

示例5: CheckUniqueName

 public bool CheckUniqueName(string catName, int catId, int storeId, int portalId, string cultureName)
 {
     try
     {
         SQLHandler sqlH = new SQLHandler();
         List<KeyValuePair<string, object>> parameterCollection = new List<KeyValuePair<string, object>>();
         parameterCollection.Add(new KeyValuePair<string, object>("@CategoryName", catName));
         parameterCollection.Add(new KeyValuePair<string, object>("@CategoryID", catId));
         parameterCollection.Add(new KeyValuePair<string, object>("@StoreID", storeId));
         parameterCollection.Add(new KeyValuePair<string, object>("@PortalID", portalId));
         parameterCollection.Add(new KeyValuePair<string, object>("@CultureName", cultureName));
         return sqlH.ExecuteNonQueryAsBool("dbo.usp_Aspx_CategoryNameUniquenessCheck", parameterCollection, "@IsUnique");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:18,代码来源:CategorySqlProvider.cs

示例6: IsShippingLabelCreated

 public static bool IsShippingLabelCreated(int orderId, AspxCommonInfo commonInfo)
 {
     List<KeyValuePair<string, object>> paraMeter = new List<KeyValuePair<string, object>>();
     paraMeter.Add(new KeyValuePair<string, object>("@OrderID", orderId));
     paraMeter.Add(new KeyValuePair<string, object>("@PortalId", commonInfo.StoreID));
     paraMeter.Add(new KeyValuePair<string, object>("@StoreId", commonInfo.StoreID));
     SQLHandler sqLh = new SQLHandler();
     bool isCreated = sqLh.ExecuteNonQueryAsBool("[dbo].[usp_Aspx_CheckLabelExist]", paraMeter, "@IsCreated");
     return isCreated;
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:10,代码来源:AspxShipProviderMgntProvider.cs

示例7: CheckRemainingDownload

 public static bool CheckRemainingDownload(int itemId, int orderItemId, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         SQLHandler sqlH = new SQLHandler();
         List<KeyValuePair<string, object>> parameterCollection = CommonParmBuilder.GetParamSPU(aspxCommonObj);
         parameterCollection.Add(new KeyValuePair<string, object>("@ItemID", itemId));
         parameterCollection.Add(new KeyValuePair<string, object>("@OrderItemID", orderItemId));
         bool isRemain = sqlH.ExecuteNonQueryAsBool("dbo.usp_Aspx_CheckRemainingDownloadForCustomer", parameterCollection, "@IsRemainDowload");
         return isRemain;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:16,代码来源:AspxUserDashProvider.cs

示例8: CheckBrandUniqueness

 public static bool CheckBrandUniqueness(string brandName, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSPC(aspxCommonObj);
         parameter.Add(new KeyValuePair<string, object>("@BrandName", brandName));
         SQLHandler sqlH = new SQLHandler();
         bool isUnique= sqlH.ExecuteNonQueryAsBool("usp_Aspx_CheckBrandUniqueness", parameter, "@isUnique");
         return isUnique;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:15,代码来源:AspxBrandProvider.cs

示例9: CheckCatalogRuleExist

 public bool CheckCatalogRuleExist(int iPortalID, int iStoreID)
 {
     try
     {
         bool isExist = false;
         SQLHandler sqlHandler = new SQLHandler();
         List<KeyValuePair<string, object>> paramList = new List<KeyValuePair<string, object>>();
         paramList.Add(new KeyValuePair<string, object>("@PortalID", iPortalID));
         paramList.Add(new KeyValuePair<string, object>("@StoreID", iPortalID));
         isExist = sqlHandler.ExecuteNonQueryAsBool("[dbo].[usp_Aspx_CheckCatalogRuleExist]", paramList, "@IsExist");
         return isExist;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:17,代码来源:ApplyCategoryPriceRules.cs

示例10: CheckUniqueSKUCode

 public bool CheckUniqueSKUCode(string sku, int itemId, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         SQLHandler sqlH = new SQLHandler();
         List<KeyValuePair<string, object>> parameterCollection = new List<KeyValuePair<string, object>>();
         parameterCollection.Add(new KeyValuePair<string, object>("@SKU", sku));
         parameterCollection.Add(new KeyValuePair<string, object>("@ItemID", itemId));
         parameterCollection.Add(new KeyValuePair<string, object>("@StoreID",aspxCommonObj.StoreID));
         parameterCollection.Add(new KeyValuePair<string, object>("@PortalID",aspxCommonObj.PortalID));
         parameterCollection.Add(new KeyValuePair<string, object>("@CultureName",aspxCommonObj.CultureName));
         return sqlH.ExecuteNonQueryAsBool("dbo.usp_Aspx_ItemSKUCodeUniquenessCheck", parameterCollection, "@IsUnique");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:18,代码来源:ItemsManagementSqlProvider.cs

示例11: CheckExisting

 public static bool CheckExisting(AspxCommonInfo aspxCommonObj, int storeAccesskeyId, string accessData)
 {
     try
     {
         SQLHandler sqlH = new SQLHandler();
         List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSP(aspxCommonObj);
         parameter.Add(new KeyValuePair<string, object>("@StoreAccessKeyID", storeAccesskeyId));
         parameter.Add(new KeyValuePair<string, object>("@StoreAccessData", accessData));
         bool isUnique= sqlH.ExecuteNonQueryAsBool("[dbo].[usp_Aspx_CheckExistingStoreAccess]", parameter, "@IsUnique");
         return isUnique;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:16,代码来源:AspxStoreAccessMgntProvider.cs

示例12: CheckEmailAddress

        public bool CheckEmailAddress(string email,int storeID, int portalID)
        {
            try
            {
                SQLHandler sqlH = new SQLHandler();
                List<KeyValuePair<string, object>> parameter = new List<KeyValuePair<string, object>>();
                parameter.Add(new KeyValuePair<string, object>("@PortalID", portalID));
                parameter.Add(new KeyValuePair<string, object>("@StoreID", storeID));
                parameter.Add(new KeyValuePair<string, object>("@Email", email));
                //parameter.Add(new KeyValuePair<string, object>("@IsExist", 0));
                return sqlH.ExecuteNonQueryAsBool("usp_Aspx_CheckEmailIsAdmin", parameter, "@IsExist");
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:18,代码来源:AspxCommerceWebService.cs

示例13: CheckDownloadableItemOnly

 public bool CheckDownloadableItemOnly(int storeID, int portalID, int customerID, string sessionCode)
 {
     try
     {
         List<KeyValuePair<string, object>> parameter = new List<KeyValuePair<string, object>>();
         parameter.Add(new KeyValuePair<string, object>("@CustomerID", customerID));
         parameter.Add(new KeyValuePair<string, object>("@StoreID", storeID));
         parameter.Add(new KeyValuePair<string, object>("@PortalID", portalID));
         parameter.Add(new KeyValuePair<string, object>("@SessionCode", sessionCode));
         SQLHandler sqlH = new SQLHandler();
         return sqlH.ExecuteNonQueryAsBool("[dbo].[usp_Aspx_CheckForDownloadableItemsInCart]", parameter, "@IsAllDownloadable");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:17,代码来源:AspxCommerceWebService.cs

示例14: CheckCatalogPriorityUniqueness

 public bool CheckCatalogPriorityUniqueness(int CatalogPriceRuleID, int Priority, int StoreID, int PortalID)
 {
     try
     {
         SQLHandler Sq = new SQLHandler();
         List<KeyValuePair<string, object>> ParaMeterCollection = new List<KeyValuePair<string, object>>();
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@CatalogPriceRuleID", CatalogPriceRuleID));
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@Priority", Priority));
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@StoreID", StoreID));
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@PortalID", PortalID));
         return Sq.ExecuteNonQueryAsBool("[usp_ASPX_CatalogPriorityUniquenessCheck]", ParaMeterCollection, "@IsUnique");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
开发者ID:electrono,项目名称:veg-web,代码行数:17,代码来源:ASPXCommerceWebService.cs

示例15: CheckUniqueSKUCode

 public bool CheckUniqueSKUCode(string SKU, int itemId, int storeId, int portalId, string cultureName)
 {
     try
     {
         SQLHandler Sq = new SQLHandler();
         List<KeyValuePair<string, object>> ParaMeterCollection = new List<KeyValuePair<string, object>>();
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@SKU", SKU));
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@ItemID", itemId));
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@StoreID", storeId));
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@PortalID", portalId));
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@CultureName", cultureName));
         return Sq.ExecuteNonQueryAsBool("dbo.usp_ASPX_ItemSKUCodeUniquenessCheck", ParaMeterCollection, "@IsUnique");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
开发者ID:electrono,项目名称:veg-web,代码行数:18,代码来源:ItemsManagementSqlProvider.cs


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