Esempio n. 1
0
 /// <summary>
 /// Adds a message to the data context.
 /// </summary>
 /// <param name="message">The message to be added.</param>
 public void AddMessage(Message message)
 {
     _entityContainer.Messages.Add(message);
     _entityContainer.SaveChanges();
 }
Esempio n. 2
0
 /// <summary>
 /// Deletes a message from the data context.
 /// </summary>
 /// <param name="message">The message to be deleted.</param>
 public void DeleteMessage(Message message)
 {
     _entityContainer.Messages.Remove(message);
     _entityContainer.SaveChanges();
 }
Esempio n. 3
0
 public void UpdateMessage(Message message)
 {
     _entityContainer.SaveChanges();
 }