Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Generation for One-to-Many Entity Relationship #12262


User avatar
0
Omnishore created

Dear ASP.NET Zero Support Team,

I hope this message finds you well. I am currently working with the ASP.NET Zero Power Tools to generate entities, and I have encountered an issue when handling one-to-many relationships.

Problem Description:

I have two entities: ProductCatalog and Product. The ProductCatalog entity can have many Product entities, while each Product is associated with one ProductCatalog.

Here are the classes I'm working with:

Issue:

When using the ASP.NET Zero Power Tools to generate the related UI components for these entities, it does not generate the expected one-to-many relationship. Instead, I only receive the typical "LookupTable," "Dropdown," and "Typeahead" components. This doesn't reflect the one-to-many relationship correctly, and I'm unable to bind the entities as intended.

I would appreciate your guidance on how to resolve this issue or whether there are any additional configurations I need to apply to the Power Tools for it to correctly handle and generate the one-to-many relationship.

Thank you for your time and assistance.


1 Answer(s)
  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @Omnishore,

    Select Create Master-Detail Page Add the table on the 1-Many tab. We don't have a relation on Parent entity like ICollection. But the working logic is the same.