-
-
Notifications
You must be signed in to change notification settings - Fork 524
Expand file tree
/
Copy pathJoinClause.cs
More file actions
52 lines (46 loc) · 1.37 KB
/
JoinClause.cs
File metadata and controls
52 lines (46 loc) · 1.37 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
44
45
46
47
48
49
50
51
52
using System;
namespace SqlKata
{
public abstract class AbstractJoin : AbstractClause
{
}
public class BaseJoin : AbstractJoin
{
public Join Join { get; set; }
public override AbstractClause Clone()
{
return new BaseJoin
{
Engine = Engine,
Join = Join.Clone(),
Component = Component,
};
}
}
public class DeepJoin : AbstractJoin
{
public string Type { get; set; }
public string IndexHint { get; set; }
public string Expression { get; set; }
public string SourceKeySuffix { get; set; }
public string TargetKey { get; set; }
public Func<string, string> SourceKeyGenerator { get; set; }
public Func<string, string> TargetKeyGenerator { get; set; }
/// <inheritdoc />
public override AbstractClause Clone()
{
return new DeepJoin
{
Engine = Engine,
Component = Component,
Type = Type,
IndexHint = IndexHint,
Expression = Expression,
SourceKeySuffix = SourceKeySuffix,
TargetKey = TargetKey,
SourceKeyGenerator = SourceKeyGenerator,
TargetKeyGenerator = TargetKeyGenerator,
};
}
}
}