/// <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(); }
/// <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(); }
/// <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(); }