Inject the identifier value into the given entity.

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

Syntax

C#
void SetIdentifier(
	Object entity,
	Object id
)
Visual Basic
Sub SetIdentifier ( _
	entity As Object, _
	id As Object _
)
Visual C++
void SetIdentifier(
	Object^ entity, 
	Object^ id
)

Parameters

entity
Type: System..::..Object
The entity to inject with the identifier value.
id
Type: System..::..Object
The value to be injected as the identifier.

Remarks

Has no effect if the entity does not define an identifier property

See Also