Ejemplo n.º 1
0
        /// <summary>
        /// 快速回复消息
        /// </summary>
        public void quickComment(int parentId, string content, int docId, int targetId)
        {
            var comment = new Comment
            {
                ParentId    = parentId,
                Attachment  = string.Empty,
                Content     = content,
                CreateTime  = DateTime.Now,
                DocId       = docId,
                HaveRead    = 0,
                SubmitterId = user.UserId,
                TargetId    = targetId,
                Type        = 0
            };

            SimpleDb.Insert(comment);
        }
Ejemplo n.º 2
0
 public bool Add(User entity)
 {
     return(SimpleDb.Insert(entity));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 单个添加
 /// </summary>
 /// <param name="t">添加对象</param>
 /// <returns></returns>
 public bool AddEntity(T t)
 {
     return(SimpleDb.Insert(t));
 }