During merge, replace the existing (target) value in the entity we are merging to with a new (original) value from the detached entity we are merging. For immutable objects, or null values, it is safe to simply return the first parameter. For mutable objects, it is safe to return a copy of the first parameter. For objects with component values, it might make sense to recursively replace component values.

Namespace: NHibernate.UserTypes
Assembly:   NHibernate (in NHibernate)
Version: 1.2.0.4000

Syntax

Visual Basic (Declaration)
Function Replace ( _
	original As Object, _
	target As Object, _
	owner As Object _
) As Object
C#
Object Replace (
	Object original,
	Object target,
	Object owner
)
Visual C++
Object^ Replace (
	Object^ original, 
	Object^ target, 
	Object^ owner
)

Parameters

original
System.Object
the value from the detached entity being merged
target
System.Object
the value in the managed entity
owner
System.Object
the managed entity

Return Value

the value to be merged