예제 #1
0
 /// <summary>
 /// Adds a chat buffer item to the data context.
 /// </summary>
 /// <param name="chatBufferItem">The chat buffer item to be added.</param>
 public void AddChatBufferItem(ChatBufferItem chatBufferItem)
 {
     _entityContainer.ChatBuffer.Add(chatBufferItem);
     _entityContainer.SaveChanges();
 }
예제 #2
0
 /// <summary>
 /// Deletes a chat buffer item from the data context.
 /// </summary>
 /// <param name="chatBufferItem">The chat buffer item to be deleted.</param>
 public void DeleteChatBufferItem(ChatBufferItem chatBufferItem)
 {
     _entityContainer.ChatBuffer.Remove(chatBufferItem);
     _entityContainer.SaveChanges();
 }
예제 #3
0
 /// <summary>
 /// Updates an existing chat buffer item in the data context.
 /// </summary>
 /// <param name="chatBufferItem">The chat buffer item to be updated.</param>
 public void UpdateChatBufferItem(ChatBufferItem chatBufferItem)
 {
     _entityContainer.SaveChanges();
 }