-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathColumnMetadata.cs
38 lines (30 loc) · 968 Bytes
/
ColumnMetadata.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
using System.Data;
namespace SqlBulkCopyUsingDataReader
{
public class ColumnMetadata
{
public ColumnMetadata()
{
}
public ColumnMetadata(int ordinal, string name, SqlDbType dbType, bool isNullable)
{
this.Ordinal = ordinal;
this.Name = name;
this.DbType = dbType;
this.IsNullable = isNullable;
}
public ColumnMetadata(int ordinal, string name, SqlDbType dbType, bool isNullable, long width)
{
this.Ordinal = ordinal;
this.Name = name;
this.DbType = dbType;
this.IsNullable = isNullable;
this.Width = width;
}
public int Ordinal { get; set; }
public string Name { get; set; }
public SqlDbType DbType { get; set; }
public bool IsNullable { get; set; }
public long Width { get; set; }
}
}