Open Closed

Relation with AppUser in Microservice project? #5746


User avatar
0
guven.uysall created
  • ABP Framework version: v6.0.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server etc..
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

We want to show who created and updated the records in a table we created in our Microservice project. There are CreatorIds and ModifyIds in our table. How can I establish a relationship with AppUser in the Microservice project?


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It is not recommended that you create a relationship, because different microservices may use different database(SQL server, mysql). You can record the user id and query the user info when needed

  • User Avatar
    0
    guven.uysall created

    Hi @maliming,

    It would be great if you could share a code example on this topic.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://support.abp.io/QA/Questions/2787/Lookup-user--Create-user-from-microservice

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11