Class Table
- Namespace
- Dynamicweb.DataIntegration.Integration
- Assembly
- Dynamicweb.DataIntegration.dll
Used to describe a table in a schema.
public class Table
- Inheritance
-
Table
- Inherited Members
- Extension Methods
Constructors
Table()
Empty constructor, needed for testing. Should not be used.
public Table()
Table(string, Schema, string)
Initializes a new instance of the Table class.
public Table(string name, Schema schema, string sqlSchema)
Parameters
Table(string, Schema, string, bool)
Initializes a new instance of the Table class.
public Table(string name, Schema schema, string sqlSchema, bool isNew)
Parameters
namestringThe name.
schemaSchemaThe schema.
sqlSchemastringThe SQL schema.
isNewboolif set to
true, this table is to be added to the destination when the job is run.
Table(XmlNode)
Initializes a new instance of the Table class from XML input.
public Table(XmlNode xmlNode)
Parameters
xmlNodeXmlNodeThe XML node.
Properties
Columns
Gets the columns.
public virtual ColumnCollection Columns { get; }
Property Value
FormattingColumns
public virtual IEnumerable<Column> FormattingColumns { get; }
Property Value
IsNew
Gets a value indicating whether this instance is new, and is to be added to the destination when the job is run.
public bool IsNew { get; }
Property Value
- bool
trueif this instance is new; otherwise,false.
Name
Gets the name.
public virtual string Name { get; }
Property Value
Schema
Gets or sets the schema that this column belongs to.
public virtual Schema? Schema { get; }
Property Value
- Schema
The schema.
SqlSchema
public virtual string SqlSchema { get; set; }
Property Value
Methods
AddColumn(Column)
Adds the column to the table.
public void AddColumn(Column column)
Parameters
columnColumnThe column.
AddColumn(string, Type)
Adds the column to the table.
public void AddColumn(string columnName, Type columnType)
Parameters
AddNewColumn(string, Type?, bool, bool)
Adds the new column to the table. This column will bed added to the table, when the job is run.
public Column AddNewColumn(string columnName, Type? type, bool isPrimaryKey, bool readOnly)
Parameters
columnNamestringName of the column.
typeTypeThe type.
isPrimaryKeyboolif set to
true[is primary key].readOnlyboolif set to
true, indicates that the column is read only.