Class DataColumn
Represents a column in a Table that gets data from an external data source.
Implements
Inherited Members
Namespace: TabularEditor.TOMWrapper
Assembly: TOMWrapper.dll
Syntax
public sealed class DataColumn : Column, ICustomTypeDescriptor, INotifyPropertyChanging, IComparable, IFolderObject, ITabularTableObject, ITomErrorMessageObject, IDescriptionObject, IFormattableObject, ILineageTagObject, IExtendedPropertyObject, ITabularPerspectiveObject, IHideableObject, ITranslatableObject, IAnnotationObject, ISynonymObject, IDaxObject, ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject, IClonableObject
Properties
Parent
The parent Table of the current Data Column.
Declaration
public Table Parent { get; }
Property Value
Type | Description |
---|---|
Table |
SourceColumn
Name of the column from which data will be retrieved. The name must match a column returned during processing or refresh, where the partition source is a query (as the Query of a CalculatedPartitionSource).
Declaration
public string SourceColumn { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Clone(string, bool, Table)
Creates an exact copy of this DataColumn object.
Declaration
public DataColumn Clone(string newName = null, bool includeTranslations = true, Table newParent = null)
Parameters
Type | Name | Description |
---|---|---|
string | newName | |
bool | includeTranslations | |
Table | newParent |
Returns
Type | Description |
---|---|
DataColumn |
CreateNew(Table, string)
Creates a new DataColumn and adds it to the parent Table. Also creates the underlying metadataobject and adds it to the TOM tree.
Declaration
public static DataColumn CreateNew(Table parent, string name = null)
Parameters
Type | Name | Description |
---|---|---|
Table | parent | |
string | name |
Returns
Type | Description |
---|---|
DataColumn |