Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IHibernateOperations.Get(Type, Object) Method

Return the persistent instance of the given entity type with the given identifier, or

null
if not found.

[Visual Basic]
Public Sub Get( _
   ByVal entityType As Type, _
   ByVal id As Object _
)
[C#]
object Get(
   Type entityType,
   object id
);

Parameters

entityType
a persistent type.
id
An identifier of the persistent instance.

Return Value

the persistent instance, or null if not found

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

IHibernateOperations Interface | Spring.Data.NHibernate Namespace | IHibernateOperations.Get Overload List