Starts in:
1 DAY
20 HRS
29 MIN
28 SEC
Starts in:
1 D
20 H
29 M
28 S
Open Closed

Creating Many-To-Many Relationship with one or more additional properties in BookCategory table #2811


User avatar
0
Radoslav created
  • ABP Framework version: v 5.2.0-rc.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I am using the latest Abp Suite to generate code for entities. I am following this tutorial: https://docs.abp.io/en/commercial/5.2/abp-suite/creating-many-to-many-relationship

I wanted to know if I can during Code generation time to enter my custom properties of simple type or even navigation property to other existing entity.

So I want this link:

to look like:

I suppose you didn't plan this feature. I would suggest you would provide devs a chance to

BTW I have a DB schema with many of these many to many relationships using a linked table, sometimes with and sometimes without extra properties. What would I need to do regarding writing remaining code (after code generation) to allow for editing/viewing extra properties (and maybe navigation properties)

As we know sometimes linked tables can have more complex relationships with other tables (let's say 1 to many with some other table, like a category for a book applies to a collection of Regions)

Thanks Rad


1 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    I suppose you didn't plan this feature. I would suggest you would provide devs a chance to

    Hi @Radoslav, yes we didn't plan this feature. I'll create an internal issue for your suggestion.

    What would I need to do regarding writing remaining code (after code generation) to allow for editing/viewing extra properties (and maybe navigation properties)

    The following resources might be helpful for you to understand the extension system and apply for your own logic:

    • Object Extensions
    • https://github.com/abpframework/abp/pull/4861 (You can examine this PR to see how you can show the extra properties on UI and also good to see the flow)
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06