Remove a column from a table.

Namespace:  Mindscape.LightSpeed.Migrations
Assembly:  Mindscape.LightSpeed.Migrations (in Mindscape.LightSpeed.Migrations.dll)
Version: 3.1.0.0 (4.0.0.0)

Syntax

C#
protected virtual void DropColumn(
	string tableName,
	string owner,
	string columnName,
	bool onlyIfCanRemoveForeignKeys
)
Visual Basic (Declaration)
Protected Overridable Sub DropColumn ( _
	tableName As String, _
	owner As String, _
	columnName As String, _
	onlyIfCanRemoveForeignKeys As Boolean _
)

Parameters

tableName
Type: System..::.String
The name of the table to remove the column from.
owner
Type: System..::.String
The owner/schema name that the table belongs to. If empty the database default is used.
columnName
Type: System..::.String
The name of the column to remove.
onlyIfCanRemoveForeignKeys
Type: System..::.Boolean
Indicates if the removal should only occur if foreign keys can be dropped.

See Also