Execute a query, binding an array of values to a "?" parameters in the query string.
Namespace:
NHibernateAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
<ObsoleteAttribute("Use ISession.CreateQuery().SetXYZ().List()")> _ Function Find ( _ query As String, _ values As Object(), _ types As IType() _ ) As IList |
C# |
---|
[ObsoleteAttribute("Use ISession.CreateQuery().SetXYZ().List()")] IList Find( string query, Object[] values, IType[] types ) |
Visual C++ |
---|
[ObsoleteAttribute(L"Use ISession.CreateQuery().SetXYZ().List()")] IList^ Find( String^ query, array<Object^>^ values, array<IType^>^ types ) |
JavaScript |
---|
function find(query, values, types); |
Parameters
- query
- Type: System..::.String
The query string
- values
- Type: array<
System..::.Object
>[]()[]
An array of values to be bound to the "?" placeholders
- types
- Type: array<
NHibernate.Type..::.IType
>[]()[]
An array of Hibernate types of the values
Return Value
A distinct list of instances
Remarks
See List()()() for implications of cache usage.