示例#1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="factory">AbstractMessageFactory</param>
        public Message(AbstractMessageFactory factory)
        {
            DateTime pt = DateTime.Now;

            _insertMessage = factory.CreateMessage();
            _messageModel  = factory.CreateMessageModel();
        }
示例#2
0
 public abstract string Insert(AbstractMessageModel amm);
示例#3
0
 public override string Insert(AbstractMessageModel amm)
 {
     return("afsd");
 }
示例#4
0
 /// <summary>
 /// 插入Message
 /// </summary>
 /// <param name="amm">AbstractMessageModel</param>
 /// <returns></returns>
 public override string Insert(AbstractMessageModel amm)
 {
     return("Sql方式插入Message。帐号:" + amm.UserId
            + ";内容:" + amm.Message
            + ";时间:" + amm.PublishTime.ToString());
 }