3 * Copyright (C)2007-2008 Versabanq Innovations Inc. and contributors.
4 * See the included file named LICENSE for license information.
9 public struct VxColumnInfo
{
11 internal string colname
;
12 internal VxColumnType coltype
;
13 internal short precision
;
15 internal byte nullable
;
17 public string ColumnName
{
18 get { return colname; }
19 set { colname = value; }
22 public VxColumnType VxColumnType
{
23 get { return coltype; }
24 set { coltype = value; }
27 public string ColumnType
{
28 get { return coltype.ToString(); }
31 public bool Nullable
{
32 get { return (nullable != 0); }
33 set { nullable = value ? (byte)1 : (byte)0; }
40 throw new ArgumentOutOfRangeException(
41 "Size must be nonnegative");
47 public short Precision
{
48 get { return precision; }
51 throw new ArgumentOutOfRangeException(
52 "Precision must be nonnegative");
62 throw new ArgumentOutOfRangeException(
63 "Scale must be nonnegative");
69 public VxColumnInfo(string colname
, VxColumnType vxcoltype
, bool nullable
,
70 int size
, short precision
, short scale
)
73 VxColumnType
= vxcoltype
;
76 Precision
= precision
;
81 public enum VxColumnType
{