Return the persistent instance of the given entity class with the given identifier,
obtaining the specified lock mode.
Namespace:
NHibernateAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function Load ( _ theType As Type, _ id As Object, _ lockMode As LockMode _ ) As Object |
C# |
---|
Object Load( Type theType, Object id, LockMode lockMode ) |
Visual C++ |
---|
Object^ Load( Type^ theType, Object^ id, LockMode^ lockMode ) |
JavaScript |
---|
function load(theType, id, lockMode); |
Parameters
- theType
- Type: System..::.Type
A persistent class
- id
- Type: System..::.Object
A valid identifier of an existing persistent instance of the class
- lockMode
- Type: NHibernate..::.LockMode
The lock level