Ejemplo n.º 1
0
        public bool InsertToEntertainCmt(EntertainmentComment _UserCmtObj)
        {
            String Sql = "insert into EntertainmentComment(UserID,CommentContent,EntertainmentID,Rate,State)" +
                         "values(@UserID,@CommentContent,@RestaurantID,@Rate,@State)";

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

            if (SqlHelper.ExecuteNonQuery(Sql, Paras, CommandType.Text) > 0)
            {
                return(true);
            }
            return(false);
        }
 public bool InsertToEntertainCmt(EntertainmentComment _UserCmtObj)
 {
     return(this._EnterTMInfoDAL.InsertToEntertainCmt(_UserCmtObj));
 }