/// <summary>
        /// 修改满足条件送积分促销规则.
        /// </summary>
        /// <param name="promoteMeetGiveIntegral">
        /// Promote_Meet_GiveIntegral的对象.
        /// </param>
        /// <param name="transaction">
        /// 数据事务.
        /// </param>
        public void UpdateByRuleID(Promote_Meet_GiveIntegral promoteMeetGiveIntegral, SqlTransaction transaction)
        {
            if (promoteMeetGiveIntegral == null)
            {
                throw new ArgumentNullException("promoteMeetGiveIntegral");
            }

            var parameters = new List<SqlParameter>
                                 {
                                     this.SqlServer.CreateSqlParameter(
                                         "MeetRuleID",
                                         SqlDbType.Int,
                                         promoteMeetGiveIntegral.MeetRuleID,
                                         ParameterDirection.Input),
                                     this.SqlServer.CreateSqlParameter(
                                         "MeetTypeID",
                                         SqlDbType.Int,
                                         promoteMeetGiveIntegral.MeetTypeID,
                                         ParameterDirection.Input),
                                     this.SqlServer.CreateSqlParameter(
                                         "Integral",
                                         SqlDbType.Int,
                                         promoteMeetGiveIntegral.Integral,
                                         ParameterDirection.Input)
                                 };
            this.SqlServer.ExecuteNonQuery(CommandType.StoredProcedure, "sp_Promote_Meet_GiveIntegral_Update", parameters, transaction);
        }
        /// <summary>
        /// 添加满足条件送积分促销规则.
        /// </summary>
        /// <param name="promoteMeetGiveIntegral">
        /// Promote_Meet_GiveIntegral的对象.
        /// </param>
        /// <param name="transaction">
        /// 数据事务.
        /// </param>
        /// <returns>
        /// 满足条件送积分促销规则编号.
        /// </returns>
        public int Insert(Promote_Meet_GiveIntegral promoteMeetGiveIntegral, SqlTransaction transaction)
        {
            if (promoteMeetGiveIntegral == null)
            {
                throw new ArgumentNullException("promoteMeetGiveIntegral");
            }

            var parameters = new List<SqlParameter>
                                 {
                                     this.SqlServer.CreateSqlParameter(
                                         "MeetRuleID",
                                         SqlDbType.Int,
                                         promoteMeetGiveIntegral.MeetRuleID,
                                         ParameterDirection.Input),
                                     this.SqlServer.CreateSqlParameter(
                                         "MeetTypeID",
                                         SqlDbType.Int,
                                         promoteMeetGiveIntegral.MeetTypeID,
                                         ParameterDirection.Input),
                                     this.SqlServer.CreateSqlParameter(
                                         "Integral",
                                         SqlDbType.Int,
                                         promoteMeetGiveIntegral.Integral,
                                         ParameterDirection.Input),
                                     this.SqlServer.CreateSqlParameter(
                                         "ReferenceID",
                                         SqlDbType.Int,
                                         promoteMeetGiveIntegral.ID,
                                         ParameterDirection.Output)
                                 };
            this.SqlServer.ExecuteNonQuery(CommandType.StoredProcedure, "sp_Promote_Meet_GiveIntegral_Insert", parameters, transaction);
            return (int)parameters.Find(parameter => parameter.ParameterName == "ReferenceID").Value;
        }