Load the data for the object with the specified id into a newly created object
using "for update", if supported. A new key will be assigned to the object.
This should return an existing proxy where appropriate.
If the object does not exist in the database, null is returned.
Namespace:
NHibernate.ImplAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function Get ( _ clazz As Type, _ id As Object, _ lockMode As LockMode _ ) As Object |
C# |
---|
public Object Get( Type clazz, Object id, LockMode lockMode ) |
Visual C++ |
---|
public: virtual Object^ Get( Type^ clazz, Object^ id, LockMode^ lockMode ) sealed |
JavaScript |
---|
function get(clazz, id, lockMode); |