Apply the Replace(Object, Object, ISessionImplementor, Object, IDictionary, ForeignKeyDirection) operation across a series of values, as long as the corresponding IType is an association.

Namespace: NHibernate.Type
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static Object[] ReplaceAssociations(
	Object[] original,
	Object[] target,
	IType[] types,
	ISessionImplementor session,
	Object owner,
	IDictionary copyCache,
	ForeignKeyDirection foreignKeyDirection
)
Visual Basic
Public Shared Function ReplaceAssociations ( _
	original As Object(), _
	target As Object(), _
	types As IType(), _
	session As ISessionImplementor, _
	owner As Object, _
	copyCache As IDictionary, _
	foreignKeyDirection As ForeignKeyDirection _
) As Object()
Visual C++
public:
static array<Object^>^ ReplaceAssociations(
	array<Object^>^ original, 
	array<Object^>^ target, 
	array<IType^>^ types, 
	ISessionImplementor^ session, 
	Object^ owner, 
	IDictionary^ copyCache, 
	ForeignKeyDirection^ foreignKeyDirection
)

Parameters

original
Type: array<System..::..Object>[]()[][]
The source of the state
target
Type: array<System..::..Object>[]()[][]
The target into which to replace the source values.
types
Type: array<NHibernate.Type..::..IType>[]()[][]
The value types
session
Type: NHibernate.Engine..::..ISessionImplementor
The originating session
owner
Type: System..::..Object
The entity "owning" the values
copyCache
Type: System.Collections..::..IDictionary
A map representing a cache of already replaced state
foreignKeyDirection
Type: NHibernate.Type..::..ForeignKeyDirection
FK directionality to be applied to the replacement

Return Value

The replaced state

Remarks

If the corresponding type is a component type, then apply ReplaceAssociations(array<Object>[]()[][], array<Object>[]()[][], array<IType>[]()[][], ISessionImplementor, Object, IDictionary, ForeignKeyDirection) across the component subtypes but do not replace the component value itself.

See Also