Specify an association fetching strategy. Currently, only one-to-many and one-to-one associations are supported.

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
ICriteria SetFetchMode(
	string associationPath,
	FetchMode mode
)
Visual Basic
Function SetFetchMode ( _
	associationPath As String, _
	mode As FetchMode _
) As ICriteria
Visual C++
ICriteria^ SetFetchMode(
	String^ associationPath, 
	FetchMode mode
)

Parameters

associationPath
Type: System..::..String
A dot seperated property path.
mode
Type: NHibernate..::..FetchMode
The Fetch mode.

Return Value

[Missing <returns> documentation for "M:NHibernate.ICriteria.SetFetchMode(System.String,NHibernate.FetchMode)"]

See Also