forked from ThatRendle/Simple.Data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWithClause.cs
More file actions
43 lines (36 loc) · 1.16 KB
/
WithClause.cs
File metadata and controls
43 lines (36 loc) · 1.16 KB
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
namespace Simple.Data
{
public class WithClause : SimpleQueryClauseBase
{
private readonly ObjectReference _objectReference;
private readonly WithMode _mode;
private readonly WithType _type;
public WithClause(ObjectReference objectReference) : this(objectReference, WithType.NotSpecified)
{
}
public WithClause(ObjectReference objectReference, WithType type) : this(objectReference, WithMode.NotSpecified, type)
{
}
public WithClause(ObjectReference objectReference, WithMode mode) : this(objectReference, mode, WithType.NotSpecified)
{
}
public WithClause(ObjectReference objectReference, WithMode mode, WithType type)
{
_objectReference = objectReference;
_mode = mode;
_type = type;
}
public WithMode Mode
{
get { return _mode; }
}
public WithType Type
{
get { return _type; }
}
public ObjectReference ObjectReference
{
get { return _objectReference; }
}
}
}