Class Column
- Namespace
- Dynamicweb.DataIntegration.Integration
- Assembly
- Dynamicweb.DataIntegration.dll
Represents table column
public class Column
- Inheritance
-
Column
- Derived
- Inherited Members
- Extension Methods
Constructors
Column()
Default constructor
public Column()
Column(string, Type?, Table?)
Initializes a new instance of the Column class.
public Column(string name, Type? type, Table? table)
Parameters
Column(string, Type?, Table?, bool, bool)
Initializes a new instance of the Column class.
public Column(string name, Type? type, Table? table, bool isPrimaryKey, bool isNew)
Parameters
namestringThe name.
typeTypeThe type.
tableTableThe table.
isPrimaryKeyboolif set to
true, the column is primary key.isNewboolif set to
true, indicates that the column is to be added to the schema when the activity is run..
Column(string, Type?, Table?, bool, bool, bool)
Initializes a new instance of the Column class.
public Column(string name, Type? type, Table? table, bool isPrimaryKey, bool isNew, bool readOnly)
Parameters
namestringThe name.
typeTypeThe type.
tableTableThe table.
isPrimaryKeyboolif set to
true, the column is primary key.isNewboolif set to
true, indicates that the column is to be added to the schema when the activity is run..readOnlyboolif set to
true, indicates that the column is read only.
Column(XmlNode, Table)
Initializes a new instance of the Column class. Is used when reading the schema from an XML file, as part of a provider. must match the output created by SaveAsXML().
public Column(XmlNode xmlNode, Table table)
Parameters
Fields
isNew
protected bool isNew
Field Value
isPrimaryKey
protected bool isPrimaryKey
Field Value
name
protected string name
Field Value
table
protected Table? table
Field Value
type
protected Type? type
Field Value
Properties
Group
public string? Group { get; set; }
Property Value
IsNew
Gets a value indicating whether this instance has been added to the schema during the mapping.
public bool IsNew { get; }
Property Value
- bool
trueif this instance is new; otherwise,false.
IsPrimaryKey
Gets or sets a value indicating whether this instance is a primary key. Must be true for at least one colunn in the table, can be true for several.
public virtual bool IsPrimaryKey { get; set; }
Property Value
- bool
trueif this instance is primary key; otherwise,false.
Name
Gets or sets the name of the column.
public virtual string Name { get; set; }
Property Value
- string
The name of the column.
NameWithWhitespaceStripped
Gets or sets the name with whitespace stripped.
public virtual string NameWithWhitespaceStripped { get; set; }
Property Value
- string
The name with whitespace stripped.
ReadOnly
Gets value indicating if the column is read only
public virtual bool ReadOnly { get; set; }
Property Value
Table
Gets the table this column belongs to.
public virtual Table? Table { get; }
Property Value
Type
Gets the type of the column.
public virtual Type? Type { get; }
Property Value
Methods
SaveAsXml(XmlTextWriter)
Saves as XML. Used when saving the schema to XML file. Must match the constructor that take an XmlNode as an argument.
public virtual void SaveAsXml(XmlTextWriter xmlTextWriter)
Parameters
xmlTextWriterXmlTextWriterThe XML text writer.