Set the identifier of an instance (or do nothing if no identifier property)

Namespace:  NHibernate.Persister.Entity
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Sub SetIdentifier ( _
	obj As Object, _
	id As Object _
)
C#
void SetIdentifier(
	Object obj,
	Object id
)
Visual C++
void SetIdentifier(
	Object^ obj, 
	Object^ id
)
JavaScript
function setIdentifier(obj, id);

Parameters

obj
Type: System..::.Object
The object to set the Id property on.
id
Type: System..::.Object
The value to set the Id property to.

See Also