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


C# StoredProcedure.ExecuteNonQuery方法代码示例

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


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

示例1: Clear

 public static bool Clear()
 {
     bool result = false;
     using (StoredProcedure sp = new StoredProcedure("Log_Clear"))
     {
         result = sp.ExecuteNonQuery() > 0;
     }
     return result;
 }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:9,代码来源:Log.cs

示例2: DeleteImageByGroupID

 public bool DeleteImageByGroupID(int groupID)
 {
     bool result = false;
     using (StoredProcedure sp = new StoredProcedure("Products_DeleteImage"))
     {
         sp.Params.Add("@GroupID", System.Data.SqlDbType.Int).Value = groupID;
         result = sp.ExecuteNonQuery() > 0;
     }
     return result;
 }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:10,代码来源:Products.cs

示例3: Delete

        public bool Delete(Service item)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("ServiceSpecialization_DeleteByService"))
            {
                sp.Params.Add("@ServiceID", System.Data.SqlDbType.Int).Value = item.GroupID;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:11,代码来源:ServiceSpecializations.cs

示例4: Delete

        public virtual bool Delete(ContactForm item)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("ContactForms_DeleteItem"))
            {
                sp.Params.Add("@ID", System.Data.SqlDbType.Int).Value = item.ID;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:11,代码来源:ContactForms.cs

示例5: DeleteGroup

        public bool DeleteGroup(City item)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("Cities_DeleteGroup"))
            {
                sp.Params.Add("@GroupID", System.Data.SqlDbType.Int).Value = item.GroupID;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:11,代码来源:Cities.cs

示例6: Delete

        public bool Delete(PageHtml item)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("PagesHtml_DeleteItem"))
            {
                sp.Params.Add("@Name", System.Data.SqlDbType.NVarChar, 100).Value = item.Name;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:11,代码来源:PagesHtml.cs

示例7: Delete

        public bool Delete(NewsSubscriber item)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("NewsSubscribers_DeleteItem"))
            {
                sp.Params.Add("@ID", System.Data.SqlDbType.Int).Value = item.ID;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:11,代码来源:NewsSubscribers.cs

示例8: Delete

        public static bool Delete(DbConfigItem item)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("DbConfig_DeleteItem"))
            {
                sp.Params.Add("@Name", System.Data.SqlDbType.NVarChar, 255).Value = item.Name;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:11,代码来源:DbConfig.cs

示例9: Delete

        public bool Delete(int partnerID)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("PartnerSpecialization_DeleteByPartner"))
            {
                sp.Params.Add("@PartnerID", System.Data.SqlDbType.Int).Value = partnerID;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:11,代码来源:PartnerSpecializations.cs

示例10: Update

        public bool Update(ContentPage item)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("ContentPages_UpdateItem"))
            {
                sp.Params.Add("@ID", System.Data.SqlDbType.Int).Value = item.ID;
                sp.Params.Add("@Name", System.Data.SqlDbType.NVarChar, 255).Value = item.Name;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:12,代码来源:ContentPages.cs

示例11: DeleteById

 public void DeleteById(SeminarRegistration s)
 {
     if (s != null)
     {
         using (
             StoredProcedure sp =
                 new StoredProcedure("DELETE FROM SeminarsRegistration WHERE ID=" + s.ID.ToString()))
         {
             sp.command.CommandType = CommandType.Text;
             sp.ExecuteNonQuery();
         }
     }
 }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:13,代码来源:SeminarRegistrations.cs

示例12: Delete

        public virtual void Delete(iPadActionSerial item)
        {
            int newID = 0;
            using (StoredProcedure sp = new StoredProcedure("iPadActionSerial_DeleteItem"))
            {
                sp.Params.Add("@ID", System.Data.SqlDbType.Int).Value = item.ID;
                try
                {
                    sp.ExecuteNonQuery();
                }
                catch (Exception ex)
                {
                    Debug.WriteLine("iPadActionSerial_DeleteItem:" + ex.ToString());
                }

            }
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:17,代码来源:iPadActionSerials.cs

示例13: Update

        public virtual bool Update(ContactForm item)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("ContactForms_UpdateItem"))
            {
                sp.Params.Add("@ID", System.Data.SqlDbType.Int).Value = item.ID;
                sp.Params.Add("@Subject", System.Data.SqlDbType.NVarChar, 255).Value = item.Subject;
                sp.Params.Add("@To", System.Data.SqlDbType.NVarChar).Value = item.To;
                sp.Params.Add("@CC", System.Data.SqlDbType.NVarChar).Value = item.CC;
                sp.Params.Add("@SetForAll", System.Data.SqlDbType.Bit).Value = item.SetForAllForms;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:15,代码来源:ContactForms.cs

示例14: Save

        public static bool Save(string name,string value)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("DbConfig_AddUpdateItem"))
            {
                sp.Params.Add("@Name", System.Data.SqlDbType.NVarChar, 255).Value = name;
                sp.Params.Add("@Value", System.Data.SqlDbType.NVarChar).Value = value;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:12,代码来源:DbConfig.cs

示例15: Update

        public bool Update(SerialNumber item)
        {
            bool result = false;
            using (StoredProcedure sp = new StoredProcedure("SerialNumbers_UpdateItem"))
            {
                sp.Params.Add("@ID", System.Data.SqlDbType.Int).Value = item.ID;
                sp.Params.Add("@SerialNumber", System.Data.SqlDbType.NVarChar, 20).Value = item.Number;
                sp.Params.Add("@ServiceID", System.Data.SqlDbType.Int).Value = item.ServiceID;
                sp.Params.Add("@AdminID", System.Data.SqlDbType.Int).Value = item.AdminID;

                result = sp.ExecuteNonQuery() > 0;
            }
            return result;
        }
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:14,代码来源:SerialNumbers.cs


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