Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.FindByValueObject(T) Method

Execute a query for persistent instances, binding the properties of the given object to named parameters in the query string.

[Visual Basic]
Public NotOverridable Sub FindByValueObject(Of T)( _
   ByVal queryString As String, _
   ByVal valueObject As Object _
) _
    Implements IHibernateOperations.FindByValueObject
[C#]
public IList<T> FindByValueObject<T>(
   string queryString,
   object valueObject
);

Parameters

queryString
A query expressed in Hibernate's query language
valueObject
The values of the parameters

Return Value

A generic List containing 0 or more persistent instances

Implements

IHibernateOperations.FindByValueObject

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate.Generic Namespace