Get the persister for the named entity

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

Syntax

C#
IEntityPersister GetEntityPersister(
	string entityName
)
Visual Basic
Function GetEntityPersister ( _
	entityName As String _
) As IEntityPersister
Visual C++
IEntityPersister^ GetEntityPersister(
	String^ entityName
)

Parameters

entityName
Type: System..::..String
The name of the entity that is persisted.

Return Value

The IEntityPersister for the entity.

Exceptions

ExceptionCondition
NHibernate..::..MappingExceptionIf no IEntityPersister can be found.

See Also