Open Closed

ABP Suite Entity - AppUser as a Navigation Property #4171


User avatar
0
cellero created
  • ABP Framework version: v6++
  • UI type: Blazor
  • DB provider: EF Core

I need the AppUser as navigation property on an Entity. This is not available in ABP Suite. As a work around I create AppUserId as a string property:

I'd like to know if there is a recommended approach for adding Users to an Entity.
Maybe a new User entity that references the App user entity? My goal is to be able to create then entity using ABP suite without then need for further modification.

Do you have any suggestions? Thanks, Roger

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi Cellero,

    As you said, this is not supported by Abp Suite.

    As a work around I create AppUserId as a string property

    This may meet your requirements ıf you only need to keep the user's Id in your entity. (A Guid property would be better btw)

    There is also an article that may inspire you: https://alexbierhaus.medium.com/abp-io-navigation-property-for-identityuser-abpuser-218b15aa711c

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.