Execute a query, binding a value to a "?" parameter in the query string.

Namespace:  NHibernate
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
<ObsoleteAttribute("Use ISession.CreateQuery().SetXYZ().List()")> _
Function Find ( _
	query As String, _
	value As Object, _
	type As IType _
) As IList
C#
[ObsoleteAttribute("Use ISession.CreateQuery().SetXYZ().List()")]
IList Find(
	string query,
	Object value,
	IType type
)
Visual C++
[ObsoleteAttribute(L"Use ISession.CreateQuery().SetXYZ().List()")]
IList^ Find(
	String^ query, 
	Object^ value, 
	IType^ type
)
JavaScript
function find(query, value, type);

Parameters

query
Type: System..::.String
The query string
value
Type: System..::.Object
A value to be bound to a "?" placeholder
type
Type: NHibernate.Type..::.IType
The Hibernate type of the value

Return Value

A distinct list of instances

Remarks

See List()()() for implications of cache usage.

See Also