Generate small message that can be used in traces and exception messages.

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

Syntax

C#
public static string InfoString(
	IEntityPersister persister,
	Object id,
	IType identifierType,
	ISessionFactoryImplementor factory
)
Visual Basic
Public Shared Function InfoString ( _
	persister As IEntityPersister, _
	id As Object, _
	identifierType As IType, _
	factory As ISessionFactoryImplementor _
) As String
Visual C++
public:
static String^ InfoString(
	IEntityPersister^ persister, 
	Object^ id, 
	IType^ identifierType, 
	ISessionFactoryImplementor^ factory
)

Parameters

persister
Type: NHibernate.Persister.Entity..::..IEntityPersister
The IEntityPersister for the class in question.
id
Type: System..::..Object
The identifier of the object.
identifierType
Type: NHibernate.Type..::..IType
The NHibernate type of the identifier.
factory
Type: NHibernate.Engine..::..ISessionFactoryImplementor
The ISessionFactory.

Return Value

A descriptive String in the format of [classname#id]

See Also