Example #1
0
 /// <summary>
 /// Adds a reply to the data context.
 /// </summary>
 /// <param name="reply">The reply to be added.</param>
 public void AddReply(Reply reply)
 {
     _entityContainer.Replies.Add(reply);
     _entityContainer.SaveChanges();
 }
Example #2
0
 /// <summary>
 /// Deletes a reply from the data context.
 /// </summary>
 /// <param name="reply">The reply to be deleted.</param>
 public void DeleteReply(Reply reply)
 {
     _entityContainer.Replies.Remove(reply);
     _entityContainer.SaveChanges();
 }
Example #3
0
 /// <summary>
 /// Updates an existing reply in the data context.
 /// </summary>
 /// <param name="reply">The reply to be updated.</param>
 public void UpdateReply(Reply reply)
 {
     _entityContainer.SaveChanges();
 }