In asp.net core mvc, abp suite generates an modal to add n to n records. The generated dB table has one field, how can we add many fields ?
The modal has one collumn. How can we add more columns to UI?
5 Answer(s)
-
0
-
0
- Abp automatically adds a new table to store fields only. How can we add fields to this automatically generated table ? It doesn't appear on abp suite entity list.
- On the generated UI to add data to this new table, how can we add more fields on the drop down and table ?
-
0
Hi,
Are you talking about the many-to-many join table?
ABP suite doesn't support adding fields to the join table.
-
0
Is there a way to add manually ,?
-
0
Hi,
Yes, you can configure it just like a normal entity, like we did:
https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUserRole.cs
https://github.com/abpframework/abp/blob/e3e1779de6df5d26f01cdc8e99ac9cbcb3d24d3c/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityDbContextModelBuilderExtensions.cs#L74-L88