Make a transient instance persistent. This operation cascades to associated instances if the association is mapped with cascade="persist".
The semantics of this method are defined by JSR-220.

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

Syntax

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

Parameters

entityName
Type: System..::..String
Name of the entity.
obj
Type: System..::..Object
a transient instance to be made persistent

See Also