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

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

Syntax

Visual Basic (Declaration)
Function SetFetchMode ( _
	associationPath As String, _
	mode As FetchMode _
) As ICriteria
C#
ICriteria SetFetchMode(
	string associationPath,
	FetchMode mode
)
Visual C++
ICriteria^ SetFetchMode(
	String^ associationPath, 
	FetchMode mode
)
JavaScript
function setFetchMode(associationPath, mode);

Parameters

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

Return Value

See Also