コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_UserHotelComment"></param>
        /// <returns></returns>
        public bool InsertToHotelCmt(UserHotelComment _UserHotelComment)
        {
            String Sql = "insert into OurHotelComment(UserID,Contend,HotelID,Rate,State)" +
                         "values(@UserID,@CommentContent,@MallID,@Rate,@State)";

            SqlParameter[] Paras = new SqlParameter[]
            {
                //new SqlParameter("@CommentID",CommentID),
                new SqlParameter("@UserID", _UserHotelComment.UserID),
                new SqlParameter("@CommentContent", _UserHotelComment.CommentContent),
                //  new SqlParameter("@CommentTime",_UserCmtObj.CommentTime),
                new SqlParameter("@MallID", _UserHotelComment.HotelID),
                new SqlParameter("@Rate", _UserHotelComment.Rate),
                new SqlParameter("@State", _UserHotelComment.State),
            };

            if (SqlHelper.ExecuteNonQuery(Sql, Paras, CommandType.Text) > 0)
            {
                return(true);
            }
            return(false);
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public bool InsertToHotelCmt(UserHotelComment _UserHotelComment)
 {
     return(this._HotelInfoDAL.InsertToHotelCmt(_UserHotelComment));
 }