Refresh the entity instance state from the database.

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

Syntax

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

Parameters

entityName
Type: System..::..String
The name of the entity to be refreshed.
entity
Type: System..::..Object
The entity to be refreshed.

See Also