The IQuery type exposes the following members.

Methods

  NameDescription
Public methodEnumerable()()()()
Return the query results as an IEnumerable. If the query contains multiple results per row, the results are returned in an instance of object[].
Public methodEnumerable<(Of <<'(T>)>>)()()()()
Strongly-typed version of Enumerable()()()().
Public methodExecuteUpdate
Execute the update or delete statement.
Public methodFuture<(Of <<'(T>)>>)
Get a enumerable that when enumerated will execute a batch of queries in a single database roundtrip
Public methodFutureValue<(Of <<'(T>)>>)
Get an IFutureValue instance, whose value can be retrieved through its Value property. The query is not executed until the Value property is retrieved, which will execute other Future queries as well in a single roundtrip
Public methodList()()()()
Return the query results as an IList. If the query contains multiple results per row, the results are returned in an instance of object[].
Public methodList(IList)
Return the query results an place them into the IList.
Public methodList<(Of <<'(T>)>>)()()()()
Strongly-typed version of List()()()().
Public methodSetAnsiString(Int32, String)
Bind an instance of a String to an indexed parameter using an NHibernate AnsiStringType.
Public methodSetAnsiString(String, String)
Bind an instance of a String to a named parameter using an NHibernate AnsiStringType.
Public methodSetBinary(Int32, array<Byte>[]()[][])
Bind an instance of a Byte array to an indexed parameter using an NHibernate BinaryType.
Public methodSetBinary(String, array<Byte>[]()[][])
Bind an instance of a Byte array to a named parameter using an NHibernate BinaryType.
Public methodSetBoolean(Int32, Boolean)
Bind an instance of a Boolean to an indexed parameter using an NHibernate BooleanType.
Public methodSetBoolean(String, Boolean)
Bind an instance of a Boolean to a named parameter using an NHibernate BooleanType.
Public methodSetByte(Int32, Byte)
Bind an instance of a Byte to an indexed parameter using an NHibernate ByteType.
Public methodSetByte(String, Byte)
Bind an instance of a Byte to a named parameter using an NHibernate ByteType.
Public methodSetCacheable
Enable caching of this query result set.
Public methodSetCacheMode
Override the current session cache mode, just for this query.
Public methodSetCacheRegion
Public methodSetCharacter(Int32, Char)
Bind an instance of a Char to an indexed parameter using an NHibernate CharType.
Public methodSetCharacter(String, Char)
Bind an instance of a Char to a named parameter using an NHibernate CharType.
Public methodSetComment
Add a comment to the generated SQL.
Public methodSetDateTime(Int32, DateTime)
Bind an instance of a DateTime to an indexed parameter using an NHibernate DateTimeType.
Public methodSetDateTime(String, DateTime)
Bind an instance of a DateTime to a named parameter using an NHibernate DateTimeType.
Public methodSetDateTime2(Int32, DateTime)
Public methodSetDateTime2(String, DateTime)
Public methodSetDateTimeOffset(Int32, DateTimeOffset)
Public methodSetDateTimeOffset(String, DateTimeOffset)
Public methodSetDecimal(Int32, Decimal)
Bind an instance of a Decimal to an indexed parameter using an NHibernate DecimalType.
Public methodSetDecimal(String, Decimal)
Bind an instance of a Decimal to a named parameter using an NHibernate DecimalType.
Public methodSetDouble(Int32, Double)
Bind an instance of a Double to an indexed parameter using an NHibernate DoubleType.
Public methodSetDouble(String, Double)
Bind an instance of a Double to a named parameter using an NHibernate DoubleType.
Public methodSetEntity(Int32, Object)
Bind an instance of a mapped persistent class to an indexed parameter.
Public methodSetEntity(String, Object)
Bind an instance of a mapped persistent class to a named parameter.
Public methodSetEnum(Int32, Enum)
Bind an instance of a persistent enumeration class to an indexed parameter using an NHibernate PersistentEnumType.
Public methodSetEnum(String, Enum)
Bind an instance of a persistent enumeration class to a named parameter using an NHibernate PersistentEnumType.
Public methodSetFetchSize
Set a fetch size for the underlying ADO query.
Public methodSetFirstResult
Sets the first row to retrieve.
Public methodSetFlushMode
Override the current session flush mode, just for this query.
Public methodSetGuid(Int32, Guid)
Bind an instance of a Guid to a named parameter using an NHibernate GuidType.
Public methodSetGuid(String, Guid)
Bind an instance of a Guid to a named parameter using an NHibernate GuidType.
Public methodSetInt16(Int32, Int16)
Bind an instance of a Int16 to an indexed parameter using an NHibernate Int16Type.
Public methodSetInt16(String, Int16)
Bind an instance of a Int16 to a named parameter using an NHibernate Int16Type.
Public methodSetInt32(Int32, Int32)
Bind an instance of a Int32 to an indexed parameter using an NHibernate Int32Type.
Public methodSetInt32(String, Int32)
Bind an instance of a Int32 to a named parameter using an NHibernate Int32Type.
Public methodSetInt64(Int32, Int64)
Bind an instance of a Int64 to an indexed parameter using an NHibernate Int64Type.
Public methodSetInt64(String, Int64)
Bind an instance of a Int64 to a named parameter using an NHibernate Int64Type.
Public methodSetLockMode
Set the lockmode for the objects idententified by the given alias that appears in the FROM clause.
Public methodSetMaxResults
Set the maximum number of rows to retrieve.
Public methodSetParameter(Int32, Object)
Bind a value to an indexed parameter, guessing the NHibernate type from the class of the given object.
Public methodSetParameter(String, Object)
Bind a value to a named query parameter, guessing the NHibernate IType from the class of the given object.
Public methodSetParameter(Int32, Object, IType)
Bind a value to an indexed parameter.
Public methodSetParameter(String, Object, IType)
Bind a value to a named query parameter
Public methodSetParameter<(Of <<'(T>)>>)(Int32, T)
Bind a value to an indexed parameter.
Public methodSetParameter<(Of <<'(T>)>>)(String, T)
Bind a value to a named query parameter
Public methodSetParameterList(String, IEnumerable)
Bind multiple values to a named query parameter, guessing the NHibernate type from the class of the first object in the collection. This is useful for binding a list of values to an expression such as foo.bar in (:value_list)
Public methodSetParameterList(String, IEnumerable, IType)
Bind multiple values to a named query parameter. This is useful for binding a list of values to an expression such as foo.bar in (:value_list)
Public methodSetProperties
Bind the property values of the given object to named parameters of the query, matching property names with parameter names and mapping property types to NHibernate types using heuristics.
Public methodSetReadOnly
Set the read-only mode for entities (and proxies) loaded by this query. This setting overrides the default setting for the session (see DefaultReadOnly).
Public methodSetResultTransformer
Set a strategy for handling the query results. This can be used to change "shape" of the query result.
Public methodSetSingle(Int32, Single)
Bind an instance of a Single to an indexed parameter using an NHibernate SingleType.
Public methodSetSingle(String, Single)
Bind an instance of a Single to a named parameter using an NHibernate SingleType.
Public methodSetString(Int32, String)
Bind an instance of a String to an indexed parameter using an NHibernate StringType.
Public methodSetString(String, String)
Bind an instance of a String to a named parameter using an NHibernate StringType.
Public methodSetTime(Int32, DateTime)
Bind an instance of a DateTime to an indexed parameter using an NHibernate DateTimeType.
Public methodSetTime(String, DateTime)
Bind an instance of a DateTime to a named parameter using an NHibernate DateTimeType.
Public methodSetTimeAsTimeSpan(Int32, TimeSpan)
Public methodSetTimeAsTimeSpan(String, TimeSpan)
Public methodSetTimeout
The timeout for the underlying ADO query
Public methodSetTimeSpan(Int32, TimeSpan)
Public methodSetTimeSpan(String, TimeSpan)
Public methodSetTimestamp(Int32, DateTime)
Bind an instance of a DateTime to an indexed parameter using an NHibernate TimestampType.
Public methodSetTimestamp(String, DateTime)
Bind an instance of a DateTime to a named parameter using an NHibernate TimestampType.
Public methodUniqueResult()()()()
Convenience method to return a single instance that matches the query, or null if the query returns no results.
Public methodUniqueResult<(Of <<'(T>)>>)()()()()
Strongly-typed version of UniqueResult()()()().

Properties

  NameDescription
Public propertyIsReadOnly
Will entities (and proxies) returned by the query be loaded in read-only mode?
Public propertyNamedParameters
The names of all named parameters of the query
Public propertyQueryString
The query string
Public propertyReturnAliases
Return the HQL select clause aliases (if any)
Public propertyReturnTypes
The NHibernate types of the query result set.

See Also