Instantiate the entity class. Return nullNothingnullptra null reference (Nothing in Visual Basic) to indicate that Hibernate should use the default constructor of the class

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

Syntax

Visual Basic (Declaration)
Function Instantiate ( _
	type As Type, _
	id As Object _
) As Object
C#
Object Instantiate(
	Type type,
	Object id
)
Visual C++
Object^ Instantiate(
	Type^ type, 
	Object^ id
)
JavaScript
function instantiate(type, id);

Parameters

type
Type: System..::.Type
A mapped type
id
Type: System..::.Object
The identifier of the new instance

Return Value

An instance of the class, or nullNothingnullptra null reference (Nothing in Visual Basic) to choose default behaviour

See Also