Last post May 11, 2018 06:15 AM by Sienna Amelia
Aug 02, 2017 07:27 PM|Altaf11221|LINK
Hi i want to build a private chat in which a user can chat privatelty to to other users and also i want
to store chat history in database using entity framework core
Aug 02, 2017 10:59 PM|JBetancourt|LINK
You can create a unique "Group" each time a user initiates a chat with another user (or set of users). Then when you send messages to that group only those users would receive the message. You could also layer more security in front of sending messages
to a group to ensure that the person sending the message is allowed to send a message to that group.
Aug 03, 2017 04:08 AM|Eric Du|LINK
According to your description and needs, I think you could use signalr groups, I found some tutorials about how to use it and save data in EF Core:
One to one chat using Asp.net SignalR groups:
Building A Private Chat Application Using SignalR:
SignalR Scaleout with SQL Server:
EF Core Save Data:
Aug 05, 2017 02:47 PM|JBetancourt|LINK
did you resolved your issue?
Aug 07, 2017 02:22 PM|Altaf11221|LINK
i want to store messages into db using EF
Aug 07, 2017 05:57 PM|JBetancourt|LINK
store them same way you store any other data, create an EF context if you dont have one already, create an entity "Message" to store the messages and save them as any other entity:
For EF examples create a new project with individual user account authentication and it will contained examples of all the CRUD(create, read, update, delete) operations you will need.
May 11, 2018 06:15 AM|Sienna Amelia|LINK
To build private chat application instantly without hassle. Try out this tutorial:
Build private one to one chat app