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?


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

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

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07