Return the persistent instance of the given entity class with the given identifier, or null
if there is no such persistent instance. Obtain the specified lock mode if the instance
exists.
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
Object Get( Type clazz, Object id, LockMode lockMode ) |
Visual Basic |
---|
Function Get ( _ clazz As Type, _ id As Object, _ lockMode As LockMode _ ) As Object |
Visual C++ |
---|
Object^ Get( Type^ clazz, Object^ id, LockMode^ lockMode ) |
Parameters
- clazz
- Type: System..::..Type
a persistent class
- id
- Type: System..::..Object
an identifier
- lockMode
- Type: NHibernate..::..LockMode
the lock mode