forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFetchMode.cs
37 lines (35 loc) · 859 Bytes
/
FetchMode.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
namespace NHibernate
{
/// <summary>
/// Represents a fetching strategy.
/// </summary>
/// <remarks>
/// <para>
/// For Hql queries, use the <c>FETCH</c> keyword instead.
/// For Criteria queries, use <c>Fetch</c> functions instead.
/// </para>
/// </remarks>
[Serializable]
public enum FetchMode
{
/// <summary>
/// Default to the setting configured in the mapping file.
/// </summary>
Default = 0,
/// <summary>
/// Fetch eagerly, using a separate select. Equivalent to
/// <c>fetch="select"</c> (and <c>outer-join="false"</c>)
/// </summary>
Select = 1,
/// <summary>
/// Fetch using an outer join. Equivalent to
/// <c>fetch="join"</c> (and <c>outer-join="true"</c>)
/// </summary>
Join = 2,
[Obsolete("Use Select instead")]
Lazy = Select,
[Obsolete("Use Join instead")]
Eager = Join
}
}