Class TableDefinition
A definition for a table in a database
Inheritance
TableDefinition
Namespace: ETLBox.ControlFlow
Assembly: ETLBox.dll
Syntax#
Constructors
TableDefinition()#
Declaration
TableDefinition(string)#
Declaration
Parameters
TableDefinition(string, List<TableColumn>)#
Declaration
Parameters
Properties
Columns#
Declaration
Property Value
ForeignKeyConstraints#
Declaration
Property Value
Name#
Declaration
Property Value
PrimaryKeyConstraintName#
The constraint name for the primary key
Declaration
Property Value
UniqueKeyConstraints#
Declaration
Property Value
Methods
CreateTable()#
Uses the CreateTableTask to create a table based on the current definition.
Declaration
CreateTable(IConnectionManager)#
Uses the CreateTableTask to create a table based on the current definition.
Declaration
Parameters
Type | Name | Description |
---|
IConnectionManager | connectionManager | The connection manager of the database you want to connect |
FindColumn(string)#
Declaration
Parameters
Returns
FromCLRType(ConnectionType, Type)#
Declaration
Parameters
Returns
FromCLRType(IConnectionManager, Type)#
Declaration
Parameters
Returns
FromCLRType<T>(IConnectionManager)#
Declaration
Parameters
Returns
Type Parameters
FromProcedureName(IConnectionManager, string)#
Declaration
Parameters
Returns
FromTableName(IConnectionManager, string, bool)#
Gather a table definition from an existing table in the database.
Declaration
Parameters
Type | Name | Description |
---|
IConnectionManager | connection | The connection manager of the database you want to connect |
string | tableName | A name of an existing table in the database |
bool | readConstraints | If set to true, information about the Unique and Foreign Key constraints are also gathered. |
Returns
GetSchema(IConnectionManager, string)#
Declaration
Parameters
Returns
RemoveDuplicateColumns(TableDefinition)#
Declaration
Parameters
Returns