Add a column to an existing table.
Namespace:
Mindscape.LightSpeed.MigrationsAssembly: Mindscape.LightSpeed.Migrations (in Mindscape.LightSpeed.Migrations.dll)
Version: 3.1.0.0 (4.0.0.0)
Syntax
C# |
---|
protected virtual void AddColumn( string tableName, string owner, string columnName, ModelDataType type, bool nullable, Nullable<int> size, bool unique ) |
Visual Basic (Declaration) |
---|
Protected Overridable Sub AddColumn ( _ tableName As String, _ owner As String, _ columnName As String, _ type As ModelDataType, _ nullable As Boolean, _ size As Nullable(Of Integer), _ unique As Boolean _ ) |
Parameters
- tableName
- Type: System..::.String
The name of the table to add the column to.
- owner
- Type: System..::.String
The owner of the table to add the column to.
- columnName
- Type: System..::.String
The name of the column to add.
- type
- Type: Mindscape.LightSpeed.Migrations..::.ModelDataType
The type of the column to add.
- nullable
- Type: System..::.Boolean
If true, the field will be nullable, otherwise it will not be nullable.
- size
- Type: System..::.Nullable<(Of <(Int32>)>)
The size of the field (for string fields only), or null for unlimited size.
- unique
- Type: System..::.Boolean
Whether to set a unique constraint on the column.