This topic describes how to map associations. The Association Mapping Details window allows you to map an association, and specify the column to property mappings.
Entity Developer also allows you to create a QueryView mapping. Query View can be used when default mapping from the entity
framework does not meet your need, and you need more flexible mapping.
How to Create an Association Mapping
1. | Right-click the association on the diagram and select Mapping Details from the popup menu. |
2. | Choose the association child entity in the Mapped Entity drop-down list. |
3. | Click the parent role in the Roles box |
4. | Select corresponding columns for the chuld entity foreign key properties in the Role Mappings grid. |
5. | Click the child role in the Roles box |
6. | Select corresponding columns for the child entity primary key properties in the Role Mappings grid. |
7. | Select columns for NOT NULL conditions in the Conditions grid if you need and click OK. |
How to Create a QueryView Association Mapping
1. | Right-click the entity on the diagram and select Mapping Details from the popup menu. |
2. | Switch to the Query View tab. |
3. | Type the entity sql query into the Query box and click OK. |
Send feedback on this topic
© 2008 - 2024 Devart. All rights reserved.