Open Closed

Add columns to n to n relationships generated modal #3994


User avatar
0
Dicky.tech@gmail.com created

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)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    sorry I don't quite understand what you mean, as my understanding you can use the suite to load an entity and continue to add property.

  • User Avatar
    0
    Dicky.tech@gmail.com created
    1. 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.
    2. On the generated UI to add data to this new table, how can we add more fields on the drop down and table ?
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Are you talking about the many-to-many join table?

    ABP suite doesn't support adding fields to the join table.

  • User Avatar
    0
    Dicky.tech@gmail.com created

    Is there a way to add manually ,?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    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

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11