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 v8.2.0-preview Updated on March 25, 2024, 15:11