Get the entity name for a persistent or transient instance

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

Syntax

C#
string GetEntityName(
	Object entity
)
Visual Basic
Function GetEntityName ( _
	entity As Object _
) As String
Visual C++
String^ GetEntityName(
	Object^ entity
)

Parameters

entity
Type: System..::..Object
an entity instance

Return Value

the name of the entity

See Also