AddDataColumn
This activity adds a new column to an existing DataTable with the specified configuration options.
Core Functions
- Creates a new DataColumn instance.
- Sets column properties such as data type, default value, uniqueness, and null allowance.
- Adds the configured column to the target DataTable.
- Updates the DataTable structure in memory.
Inputs
ColumnName: Specifies the name of the column to be added.
Type: String
DataTable: Represents the target DataTable where the new column will be added.
Type: DataTable
DataType: Defines the data type of the new column.
Type: Type
AllowNull: Indicates whether the column allows null values.
Type: Boolean
AutoIncrement: Specifies whether the column value should be automatically incremented.
Type: Boolean
DefaultValue: Defines the default value assigned to the column when no value is provided.
Type: Object
Unique: Indicates whether all values in the column must be unique.
Type: Boolean
Outputs
- None
Short Technical Summary
Adds a new column to a DataTable by configuring its name, type, constraints, and default behavior, and updates the table structure for further use in the workflow.