Skip Headers

# Associating a New Target to an Existing Source Object

Previous

Next

There are two ways to associate a new target object with an existing source object with one-to-many and one-to-one relationships:

- Associating Without Reference to the Cache Object

- Associating With Reference to the Cache Object

Deciding which approach to use depends on whether or not your code requires a reference to the cache copy clone of the new object after the unit of work is committed, and on how adaptable to change you want your code to be.