Represents a fetching strategy.

Namespace: NHibernate
Assembly:   NHibernate (in NHibernate)
Version: 1.2.0.4000

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
Public Enumeration FetchMode
C#
[SerializableAttribute]
public enum FetchMode
Visual C++
[SerializableAttribute]
public enum class FetchMode

Members

MemberDescription
Default
Default to the setting configured in the mapping file.

Eager
Join
Fetch using an outer join. Equivalent to fetch="join" (and outer-join="true")

Lazy
Select
Fetch eagerly, using a separate select. Equivalent to fetch="select" (and outer-join="false")

Remarks

This is used together with the ICriteria API to specify runtime fetching strategies.

For Hql queries, use the FETCH keyword instead.