Examples

Overload List

  NameDescription
Public methodColumn(String, eDataType)
Create a column of type eDataType
Public methodColumn(String, eDataType, Boolean)
Create a column of type eDataType and flagged if required
Public methodColumn(String, eDataType, Int32)
Create a column of that requires a length
Public methodColumn(String, eDataType, Boolean, Object)
Create a column of type eDataType with a default value and flagged if required
Public methodColumn(String, eDataType, Boolean, Int32, Object)
Create a column of type eDataType with a default value, flagged if required, and a length requirement

Examples

CopyC#
/* Create column 'Count' as an Int32 */
WIDB.Table.Column("Count", eDataType.Int32);

/* Create column 'Address' as a Text string with a max length of 256 */
WIDB.Table.Column("Address", eDataType.Text, 256);

/* Create column 'Valid' as a Bool with a default value of 'false' */
/* that is required upon insert */
WIDB.Table.Column("Valid", eDataType.Bool, false, true);

/* Create column 'City' as a Text string with a max length of 50 */
/* That defaults to 'Lancaster' and is required upon insert */
WIDB.Table.Column("City", eDataType.VarChar, "Lancaster", true, 50);

See Also