Remove a column from a table.

Namespace:  Mindscape.NHibernateModelDesigner.Migrations
Assembly:  Mindscape.NHibernateModelDesigner.Migrations (in Mindscape.NHibernateModelDesigner.Migrations.dll)
Version: 3.1.0.0 (3.1.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