Base solution for your next web application
Open Closed

Power Tool "Navigation Property" feature Issue #9477


User avatar
0
KPCS created

Hi,

We are facing following issues when trying to use "Navigation Property" feature issue:

1. After selection of Base entity User then "Display Property" field drop down is showing "Name" only though we want to show UserName. How can we do this.

2. We have created a new entity "Address" which has properties "Address Line 1,  Address Line 2, City, Country" etc. This entity is created through power tool. We need to map this entity with another table as a foreign key. So went to  "Navigation Property" tab of power tool and selected Address entity and want to select multiple properties  "Address Line 1,  Address Line 2, City, Country" in "Display Property" field drop down. How can we do this.

3. One entity has multiple foreign keys and all foreign keys are linked with one table column with different names. We would like to display all different names in aspnet zero UI. How can we do this.

Please guide us to solve above issues.

Thanks,

Kind Regfards, Kumar Prashant


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @KPCS,

    For #1 and #2, Power Tools doesn't support different display properties. You need to modify the generated code. For #3, you can add same entity as navigation property multiple times. Navigation property names will be named as NavProperty1, NavProperty2 etc.... If you want you can rename those fields as well after code generation.