ITableManagerAddTableColumn Method |
Add column to specified table.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax void AddTableColumn(
string tableName,
string columnName,
string columnType,
bool allowNull,
string defaultValue,
bool forceDefaultValue
)
Parameters
- tableName
- Type: SystemString
Table name - columnName
- Type: SystemString
Name of a new column - columnType
- Type: SystemString
Type of a new column - allowNull
- Type: SystemBoolean
Allow NULL values in new column or not - defaultValue
- Type: SystemString
Default value of the column in system (en) culture. Null if no default value is set - forceDefaultValue
- Type: SystemBoolean
Indicates if column default value should be set if column doesn't allow NULL values
See Also