- ABP Framework version: v4.3.0
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace:
- Steps to reproduce the issue:
I created new project with abp suite (application template / angular / ef core / sql server). I migrated db and created new entity Notes and added required field Title. Then I tried to add navigation property AppUser (one-to-many relationship... one note can have one appuser ("autor"), but one appuser can have multiple notes).
I followed this guide LINK but i keep getting error The property 'AppUser.ExtraProperties' could not be mapped. I already looked on forums and github, but can not fix this issue.
In abp suite 4.3.0 entity class, dto class and mapping is already created when project is created. I defined navigation property just like in guide and still no success. Am I missing something?
Thanks for answers.
I have a similar issue after I migrate to 4.3.
I migrate from 4.21 to 4.3, then I did notice that when I regenerate entities of my solution, it was creating index and FK to my navigation properties. As it is a good improvement I wanted to regenerate all entities. It works well for all my entites except the one which have Navigation properties "AppUserId".
I see this line added on MyProjectDbContextModelCreatingExtensions, into builder.Entity<MyExistingEntity>
b.HasOne<AppUser>().WithMany().HasForeignKey(x => x.AppUserId);
This line was not generate on version 4.21 and the entity generation was working well.
guys sorry I missed this one. I already created an issue for this. btw check out these. it's very similar