forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFetchKind.cs
47 lines (37 loc) · 883 Bytes
/
FetchKind.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
38
39
40
41
42
43
44
45
46
47
using NHibernate.Cfg.MappingSchema;
namespace NHibernate.Mapping.ByCode
{
public abstract class FetchKind
{
public static FetchKind Select = new SelectFetchMode();
public static FetchKind Join = new JoinFetchMode();
internal abstract HbmFetchMode ToHbm();
internal abstract HbmJoinFetch ToHbmJoinFetch();
#region Nested type: JoinFetchMode
private class JoinFetchMode : FetchKind
{
internal override HbmFetchMode ToHbm()
{
return HbmFetchMode.Join;
}
internal override HbmJoinFetch ToHbmJoinFetch()
{
return HbmJoinFetch.Join;
}
}
#endregion
#region Nested type: SelectFetchMode
private class SelectFetchMode : FetchKind
{
internal override HbmFetchMode ToHbm()
{
return HbmFetchMode.Select;
}
internal override HbmJoinFetch ToHbmJoinFetch()
{
return HbmJoinFetch.Select;
}
}
#endregion
}
}