Ends in:
1 DAY
21 HRS
22 MIN
58 SEC
Ends in:
1 D
21 H
22 M
58 S
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


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

Made with ❤️ on ABP v9.1.0-preview. Updated on December 02, 2024, 12:35