Esempio n. 1
0
        /// <summary>
        /// 插入Message
        /// </summary>
        /// <param name="message">Message</param>
        public int InsertMessage(Message message)
        {
            int _id = -1;

            try
            {
                //_daoManager.BeginTransaction();
                _id = _messageDao.InsertMessage(message);
                //_daoManager.CommitTransaction();
            }
            catch (Exception ex)
            {
                //_daoManager.RollBackTransaction();
                throw ex;
            }
            return(_id);
        }