The IQuery type exposes the following members.
Methods
Name | Description | |
---|---|---|
Enumerable()()()() |
Return the query results as an IEnumerable. If the query contains multiple results
per row, the results are returned in an instance of object[].
| |
Enumerable<(Of <<'(T>)>>)()()()() |
Strongly-typed version of Enumerable()()()().
| |
ExecuteUpdate |
Execute the update or delete statement.
| |
Future<(Of <<'(T>)>>) |
Get a enumerable that when enumerated will execute
a batch of queries in a single database roundtrip
| |
FutureValue<(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
| |
List()()()() |
Return the query results as an IList. If the query contains multiple results per row,
the results are returned in an instance of object[].
| |
List(IList) |
Return the query results an place them into the IList.
| |
List<(Of <<'(T>)>>)()()()() |
Strongly-typed version of List()()()().
| |
SetAnsiString(Int32, String) |
Bind an instance of a String to an indexed parameter
using an NHibernate AnsiStringType.
| |
SetAnsiString(String, String) |
Bind an instance of a String to a named parameter
using an NHibernate AnsiStringType.
| |
SetBinary(Int32, array<Byte>[]()[][]) |
Bind an instance of a Byte array to an indexed parameter
using an NHibernate BinaryType.
| |
SetBinary(String, array<Byte>[]()[][]) |
Bind an instance of a Byte array to a named parameter
using an NHibernate BinaryType.
| |
SetBoolean(Int32, Boolean) |
Bind an instance of a Boolean to an indexed parameter
using an NHibernate BooleanType.
| |
SetBoolean(String, Boolean) |
Bind an instance of a Boolean to a named parameter
using an NHibernate BooleanType.
| |
SetByte(Int32, Byte) | ||
SetByte(String, Byte) | ||
SetCacheable |
Enable caching of this query result set.
| |
SetCacheMode | Override the current session cache mode, just for this query. | |
SetCacheRegion | ||
SetCharacter(Int32, Char) | ||
SetCharacter(String, Char) | ||
SetComment | Add a comment to the generated SQL. | |
SetDateTime(Int32, DateTime) |
Bind an instance of a DateTime to an indexed parameter
using an NHibernate DateTimeType.
| |
SetDateTime(String, DateTime) |
Bind an instance of a DateTime to a named parameter
using an NHibernate DateTimeType.
| |
SetDateTime2(Int32, DateTime) | ||
SetDateTime2(String, DateTime) | ||
SetDateTimeOffset(Int32, DateTimeOffset) | ||
SetDateTimeOffset(String, DateTimeOffset) | ||
SetDecimal(Int32, Decimal) |
Bind an instance of a Decimal to an indexed parameter
using an NHibernate DecimalType.
| |
SetDecimal(String, Decimal) |
Bind an instance of a Decimal to a named parameter
using an NHibernate DecimalType.
| |
SetDouble(Int32, Double) |
Bind an instance of a Double to an indexed parameter
using an NHibernate DoubleType.
| |
SetDouble(String, Double) |
Bind an instance of a Double to a named parameter
using an NHibernate DoubleType.
| |
SetEntity(Int32, Object) |
Bind an instance of a mapped persistent class to an indexed parameter.
| |
SetEntity(String, Object) |
Bind an instance of a mapped persistent class to a named parameter.
| |
SetEnum(Int32, Enum) |
Bind an instance of a persistent enumeration class to an indexed parameter
using an NHibernate PersistentEnumType.
| |
SetEnum(String, Enum) |
Bind an instance of a persistent enumeration class to a named parameter
using an NHibernate PersistentEnumType.
| |
SetFetchSize | Set a fetch size for the underlying ADO query. | |
SetFirstResult |
Sets the first row to retrieve.
| |
SetFlushMode |
Override the current session flush mode, just for this query.
| |
SetGuid(Int32, Guid) | ||
SetGuid(String, Guid) | ||
SetInt16(Int32, Int16) | ||
SetInt16(String, Int16) | ||
SetInt32(Int32, Int32) | ||
SetInt32(String, Int32) | ||
SetInt64(Int32, Int64) | ||
SetInt64(String, Int64) | ||
SetLockMode |
Set the lockmode for the objects idententified by the
given alias that appears in the FROM clause.
| |
SetMaxResults |
Set the maximum number of rows to retrieve.
| |
SetParameter(Int32, Object) |
Bind a value to an indexed parameter, guessing the NHibernate type from
the class of the given object.
| |
SetParameter(String, Object) |
Bind a value to a named query parameter, guessing the NHibernate IType
from the class of the given object.
| |
SetParameter(Int32, Object, IType) |
Bind a value to an indexed parameter.
| |
SetParameter(String, Object, IType) |
Bind a value to a named query parameter
| |
SetParameter<(Of <<'(T>)>>)(Int32, T) |
Bind a value to an indexed parameter.
| |
SetParameter<(Of <<'(T>)>>)(String, T) |
Bind a value to a named query parameter
| |
SetParameterList(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) | |
SetParameterList(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) | |
SetProperties |
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.
| |
SetReadOnly |
Set the read-only mode for entities (and proxies) loaded by this query. This setting
overrides the default setting for the session (see DefaultReadOnly).
| |
SetResultTransformer |
Set a strategy for handling the query results. This can be used to change
"shape" of the query result.
| |
SetSingle(Int32, Single) |
Bind an instance of a Single to an indexed parameter
using an NHibernate SingleType.
| |
SetSingle(String, Single) |
Bind an instance of a Single to a named parameter
using an NHibernate SingleType.
| |
SetString(Int32, String) |
Bind an instance of a String to an indexed parameter
using an NHibernate StringType.
| |
SetString(String, String) |
Bind an instance of a String to a named parameter
using an NHibernate StringType.
| |
SetTime(Int32, DateTime) |
Bind an instance of a DateTime to an indexed parameter
using an NHibernate DateTimeType.
| |
SetTime(String, DateTime) |
Bind an instance of a DateTime to a named parameter
using an NHibernate DateTimeType.
| |
SetTimeAsTimeSpan(Int32, TimeSpan) | ||
SetTimeAsTimeSpan(String, TimeSpan) | ||
SetTimeout |
The timeout for the underlying ADO query
| |
SetTimeSpan(Int32, TimeSpan) | ||
SetTimeSpan(String, TimeSpan) | ||
SetTimestamp(Int32, DateTime) |
Bind an instance of a DateTime to an indexed parameter
using an NHibernate TimestampType.
| |
SetTimestamp(String, DateTime) |
Bind an instance of a DateTime to a named parameter
using an NHibernate TimestampType.
| |
UniqueResult()()()() |
Convenience method to return a single instance that matches
the query, or null if the query returns no results.
| |
UniqueResult<(Of <<'(T>)>>)()()()() |
Strongly-typed version of UniqueResult()()()().
|
Properties
Name | Description | |
---|---|---|
IsReadOnly |
Will entities (and proxies) returned by the query be loaded in read-only mode?
| |
NamedParameters |
The names of all named parameters of the query
| |
QueryString |
The query string
| |
ReturnAliases | Return the HQL select clause aliases (if any) | |
ReturnTypes |
The NHibernate types of the query result set.
|