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: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
Object Instantiate( string entityName, EntityMode entityMode, Object id ) |
Visual Basic |
---|
Function Instantiate ( _ entityName As String, _ entityMode As EntityMode, _ id As Object _ ) As Object |
Visual C++ |
---|
Object^ Instantiate( String^ entityName, EntityMode entityMode, Object^ id ) |
Parameters
- entityName
- Type: System..::..String
the name of the entity
- entityMode
- Type: NHibernate..::..EntityMode
The type of entity instance to be returned.
- 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 behaviourRemarks
The identifier property of the returned instance
should be initialized with the given identifier.