Persist the state of the given detached instance, reusing the current identifier value. This operation cascades to associated instances if the association is mapped with cascade="replicate".

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

Syntax

C#
void Replicate(
	string entityName,
	Object obj,
	ReplicationMode replicationMode
)
Visual Basic
Sub Replicate ( _
	entityName As String, _
	obj As Object, _
	replicationMode As ReplicationMode _
)
Visual C++
void Replicate(
	String^ entityName, 
	Object^ obj, 
	ReplicationMode^ replicationMode
)

Parameters

entityName
Type: System..::..String

[Missing <param name="entityName"/> documentation for "M:NHibernate.ISession.Replicate(System.String,System.Object,NHibernate.ReplicationMode)"]

obj
Type: System..::..Object
a detached instance of a persistent class
replicationMode
Type: NHibernate..::..ReplicationMode

[Missing <param name="replicationMode"/> documentation for "M:NHibernate.ISession.Replicate(System.String,System.Object,NHibernate.ReplicationMode)"]

See Also