-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathColumnInfo.cs
68 lines (54 loc) · 1.58 KB
/
ColumnInfo.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using Microsoft.SqlServer.Dts.Runtime.Wrapper;
namespace DataCleansing
{
internal class ColumnInfo
{
private readonly string _columnName;
private readonly DataType _dataType;
private readonly int _bufferIndex;
private readonly int _precision;
private readonly int _scale;
private readonly int _length;
public ColumnInfo()
{
}
public ColumnInfo(string columnName, DataType dataType, int bufferIndex, int length, int precision, int scale)
{
_columnName = columnName;
_dataType = dataType;
_bufferIndex = bufferIndex;
_precision = precision;
_scale = scale;
_length = length;
}
public int BufferIndex
{
get { return _bufferIndex; }
}
public DataType ColumnDataType
{
get { return _dataType; }
}
public string ColumnName
{
get { return _columnName; }
}
public int Precision
{
get { return _precision; }
}
public int Length
{
get { return _length; }
}
public int Scale
{
get { return _scale; }
}
public CleaningOperation Operation { get; set; }
public string FormatString { get; set; }
public int MinValue { get; set; }
public int MaxValue { get; set; }
public string[] ValueList { get; set; }
}
}