Database Reference
In-Depth Information
Solution
As with the previous recipe, let's say that you have a model that looks like the one shown in Figure 13-10 .
Figure 13-10. A model with a Resume entity with a Body property that contains the entire text of the applicant's
resume. In this recipe, we'll move the Body property to another entity
We'll assume, as we did in the previous recipe, that the Body property for the Resume may contain a rather large
representation of the applicant's resume. We want to move this property to another entity so that we can lazy load,
only if we really want to read the resume.
To move the Body property to another entity, do the following:
1.
Right-click the design surface, and select Add Entity. Name the new entity
ResumeDetail , and uncheck the Create key property check box.
2.
Move the Body property from the Resume entity to the ResumeDetail entity. You can use
Cut/Paste to move the property.
3.
Right-click the design surface, and select Add Association. Set the multiplicity to One on
the Resume side and One on the ResumeDetail side. Check the Add foreign key properties
box. (See Figure 13-11 .)
 
Search WWH ::




Custom Search