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

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

Syntax

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

Parameters

entity
Type: System..::..Object

[Missing <param name="entity"/> documentation for "M:NHibernate.Metadata.IClassMetadata.SetIdentifier(System.Object,System.Object,NHibernate.EntityMode)"]

id
Type: System..::..Object

[Missing <param name="id"/> documentation for "M:NHibernate.Metadata.IClassMetadata.SetIdentifier(System.Object,System.Object,NHibernate.EntityMode)"]

entityMode
Type: NHibernate..::..EntityMode

[Missing <param name="entityMode"/> documentation for "M:NHibernate.Metadata.IClassMetadata.SetIdentifier(System.Object,System.Object,NHibernate.EntityMode)"]

See Also