Open Closed

How To: Extend Project.Domain.Users.AppUser #182


User avatar
0
sean.alford created

According to the comments here in the Acme.HelpDesk.Domain.Users.AppUser.cs, I should be able to extend AppUser by adding new properties. (i.e. public virtual Guid OrganizationId { get; set; })

Acme.HelpDesk.Domain.Users.AppUser.cs

Next, I would need to configure the mapping for the properties here: HelpDeskDbContext.OnModelCreating

Then I would need to update HelpDeskEfCoreEntityExtensionMappings

Finally, I created the migration; however, as you can see the FK mapping did not get created as expected.

How do I correct this?

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
    1
    liangshiwei created
    Fullstack Developer

    Currently community is discussing how to configure foreign keys, Please following: https://github.com/abpframework/abp/issues/3959,

    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 17, 2026, 08:41
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.