Generates an IdentifierProperty representation of the for a given entity mapping.

Namespace:  NHibernate.Tuple
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function BuildIdentifierProperty ( _
	mappedEntity As PersistentClass, _
	generator As IIdentifierGenerator _
) As IdentifierProperty
C#
public static IdentifierProperty BuildIdentifierProperty(
	PersistentClass mappedEntity,
	IIdentifierGenerator generator
)
Visual C++
public:
static IdentifierProperty^ BuildIdentifierProperty(
	PersistentClass^ mappedEntity, 
	IIdentifierGenerator^ generator
)
JavaScript
NHibernate.Tuple.PropertyFactory.buildIdentifierProperty = function(mappedEntity, generator);

Parameters

mappedEntity
Type: NHibernate.Mapping..::.PersistentClass
The mapping definition of the entity.
generator
Type: NHibernate.Id..::.IIdentifierGenerator
The identifier value generator to use for this identifier.

Return Value

The appropriate IdentifierProperty definition.

See Also