4 public struct VxColumnInfo
{
6 internal string colname
;
7 internal VxColumnType coltype
;
8 internal short precision
;
10 internal byte nullable
;
12 public string ColumnName
{
13 get { return colname; }
14 set { colname = value; }
17 public VxColumnType VxColumnType
{
18 get { return coltype; }
19 set { coltype = value; }
22 public string ColumnType
{
23 get { return coltype.ToString(); }
26 public bool Nullable
{
27 get { return (nullable != 0); }
28 set { nullable = value ? (byte)1 : (byte)0; }
35 throw new ArgumentOutOfRangeException(
36 "Size must be nonnegative");
42 public short Precision
{
43 get { return precision; }
46 throw new ArgumentOutOfRangeException(
47 "Precision must be nonnegative");
57 throw new ArgumentOutOfRangeException(
58 "Scale must be nonnegative");
64 public VxColumnInfo(string colname
, VxColumnType vxcoltype
, bool nullable
,
65 int size
, short precision
, short scale
)
68 VxColumnType
= vxcoltype
;
71 Precision
= precision
;
76 public enum VxColumnType
{