Open Closed

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


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)
  • 1
    liangshiwei created
    Support Team

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