-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKeyInfo.cs
48 lines (45 loc) · 1.47 KB
/
KeyInfo.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
48
using System.Collections.Generic;
namespace CopyDb
{
class KeyInfo
{
public readonly string Name;
public readonly bool IsClustered;
public readonly bool IsPrimaryKey;
public readonly bool IsUnique;
public readonly bool IsConstraint;
public readonly bool IgnoreDupKey;
public readonly byte FillFactor;
public readonly bool PadIndex;
public readonly bool AllowRowLocks;
public readonly bool AllowPageLocks;
public readonly IList<ColumnInfo> Columns = new List<ColumnInfo>();
public KeyInfo (string name, bool isclustered, bool isPrimaryKey, bool isUnique, bool isConstraint, bool ignoreDupKey, byte fillFactor, bool padIndex, bool allowRowLocks, bool allowPageLocks)
{
Name = name;
IsClustered = isclustered;
IsPrimaryKey = isPrimaryKey;
IsUnique = isUnique;
IsConstraint = isConstraint;
IgnoreDupKey = ignoreDupKey;
FillFactor = fillFactor;
PadIndex = padIndex;
AllowRowLocks = allowRowLocks;
AllowPageLocks = allowPageLocks;
}
public KeyInfo (object name, object isclustered, object isPrimaryKey, object isUnique, object isConstraint, object ignoreDupKey, object fillFactor, object padIndex, object allowRowLocks, object allowPageLocks)
: this(
(string) name,
(bool) isclustered,
(bool)isPrimaryKey,
(bool)isUnique,
(bool)isConstraint,
(bool)ignoreDupKey,
(byte)fillFactor,
(bool)padIndex,
(bool)allowRowLocks,
(bool)allowPageLocks
)
{}
}
}