Starts in:
1 DAY
19 HRS
31 MIN
43 SEC
Starts in:
1 D
19 H
31 M
43 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 November 20, 2024, 13:06