Exemplo n.º 1
0
 /// <summary>
 /// 插入评论
 /// </summary>
 /// <param name="Newcomment"></param>
 /// <param name="OwnerId"></param>
 /// <returns>序列号</returns>
 public static string InsertComment(Comment NewComment, string OwnerId)
 {
     return(OwnerTableOperator.InsertRec(NewComment, OwnerId));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 删除评论
 /// </summary>
 /// <param name="DropComment"></param>
 public static void DropComment(Comment DropComment)
 {
     MongoDbRepository.DeleteRec(DropComment);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 修改评论
 /// </summary>
 /// <param name="OldComment"></param>
 public static void UpdateComment(Comment OldComment)
 {
     MongoDbRepository.UpdateRec(OldComment);
 }