/// <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); }
public bool Add(User entity) { return(SimpleDb.Insert(entity)); }
/// <summary> /// 单个添加 /// </summary> /// <param name="t">添加对象</param> /// <returns></returns> public bool AddEntity(T t) { return(SimpleDb.Insert(t)); }