Database Reference
In-Depth Information
Figure 12—Relationship mapping
The first part of this customization is to change the
Type
attribute on recipes
that are currently set as
Fish
or
Meat
. To do this, we need to utilize the filter
feature of the migration. First, select the
RecipeToRecipe
mapping. Next, open
the Mapping Model inspector, which is utility view 3 in Xcode (
DE
3). In that
inspector, we see a Filter Predicate field. This filter determines which entities
are migrated. Utilizing a filter, we can migrate only those recipe entities that
have their type set to something other than
Fish
or
Meat
. The setting is shown
here: