The ICriteria type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add |
Add an Expression to constrain the results to be retrieved.
| |
AddOrder |
An an Order to the result set
| |
ClearOrders |
Clear all orders from criteria.
| |
Clone | Creates a new object that is a copy of the current instance. (Inherited from ICloneable.) | |
CreateAlias(String, String) |
Join an association, assigning an alias to the joined entity
| |
CreateAlias(String, String, JoinType) |
Join an association using the specified join-type, assigning an alias to the joined
association
| |
CreateAlias(String, String, JoinType, ICriterion) |
Join an association using the specified join-type, assigning an alias to the joined
association
| |
CreateCriteria(String) |
Create a new ICriteria, "rooted" at the associated entity
| |
CreateCriteria(String, JoinType) |
Create a new ICriteria, "rooted" at the associated entity,
using the specified join type.
| |
CreateCriteria(String, String) |
Create a new ICriteria, "rooted" at the associated entity,
assigning the given alias
| |
CreateCriteria(String, String, JoinType) |
Create a new ICriteria, "rooted" at the associated entity,
assigning the given alias and using the specified join type.
| |
CreateCriteria(String, String, JoinType, ICriterion) |
Create a new ICriteria, "rooted" at the associated entity,
assigning the given alias and using the specified join type.
| |
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
| |
GetCriteriaByAlias |
Alows to get a sub criteria by alias.
Will return null if the criteria does not exists
| |
GetCriteriaByPath |
Allows to get a sub criteria by path.
Will return null if the criteria does not exists.
| |
GetRootEntityTypeIfAvailable |
Gets the root entity type if available, throws otherwise
| |
List()()()() |
Get the results
| |
List(IList) |
Get the results and fill the IList | |
List<(Of <<'(T>)>>)()()()() |
Strongly-typed version of List()()()().
| |
SetCacheable |
Enable caching of this query result set
| |
SetCacheMode | Override the cache mode for this particular query. | |
SetCacheRegion |
Set the name of the cache region.
| |
SetComment | Add a comment to the generated SQL. | |
SetFetchMode |
Specify an association fetching strategy. Currently, only
one-to-many and one-to-one associations are supported.
| |
SetFetchSize | Set a fetch size for the underlying ADO query. | |
SetFirstResult |
Set the first result to be retrieved
| |
SetFlushMode | Override the flush mode for this particular query. | |
SetLockMode(LockMode) |
Set the lock mode of the current entity
| |
SetLockMode(String, LockMode) |
Set the lock mode of the aliased entity
| |
SetMaxResults |
Set a limit upon the number of objects to be retrieved
| |
SetProjection |
Used to specify that the query results will be a projection (scalar in
nature). Implicitly specifies the projection result transformer.
| |
SetReadOnly |
Set the read-only mode for entities (and proxies) loaded by this Criteria. This
setting overrides the default for the session (see DefaultReadOnly).
| |
SetResultTransformer |
Set a strategy for handling the query results. This determines the
"shape" of the query result set.
| |
SetTimeout |
Set a timeout for the underlying ADO.NET query
| |
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 | |
---|---|---|
Alias |
Get the alias of the entity encapsulated by this criteria instance.
| |
IsReadOnly |
Will entities (and proxies) loaded by this Criteria be put in read-only mode?
| |
IsReadOnlyInitialized |
Was the read-only mode explicitly initialized?
|