locked
one to one private chat in signalr core RRS feed

  • Question

  • User-595439866 posted

    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

    Wednesday, August 2, 2017 7:27 PM

Answers

  • User1068175894 posted

    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:

    db.Messages.Add(msg);

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 7, 2017 5:57 PM

All replies