Class CalculatedTable
Inheritance
CalculatedTable
Assembly: TOMWrapper.dll
Syntax
public class CalculatedTable : Table, INotifyPropertyChanging, IComparable, IDescriptionObject, ILineageTagObject, IExtendedPropertyObject, ITabularPerspectiveObject, IHideableObject, ITranslatableObject, IAnnotationObject, ISynonymObject, IClonableObject, IDaxObject, IDaxDependantObject, ITomErrorMessageObject, IExpressionObject, ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject
Properties
DefaultExpressionProperty
Declaration
public override ExpressionProperty? DefaultExpressionProperty { get; }
Property Value
Overrides
Expression
The Expression of this Calculated Table.
Declaration
[Browsable(true)]
public string Expression { get; set; }
Property Value
NeedsValidation
Declaration
[Browsable(false)]
public override bool NeedsValidation { get; }
Property Value
Overrides
Methods
AddCalculatedTableColumn(string, string, string, DataType)
Adds a new Calculated Table column to the table.
Declaration
public CalculatedTableColumn AddCalculatedTableColumn(string name = null, string sourceColumn = null, string displayFolder = null, DataType dataType = DataType.Automatic)
Parameters
Returns
Exceptions
CreateNew(Model, string, string)
Creates a new Calculated Table and adds it to the specified Model.
Also creates the underlying metadataobject and adds it to the TOM tree.
Declaration
public static CalculatedTable CreateNew(Model parent, string name = null, string expression = null)
Parameters
Returns
GetExpression(ExpressionProperty)
Declaration
public override string GetExpression(ExpressionProperty expressionProperty)
Parameters
Returns
Overrides
GetExpressionProperties()
Declaration
public override IEnumerable<ExpressionProperty> GetExpressionProperties()
Returns
Overrides
Init()
Derived members should override this method to instantiate child objects
Declaration
protected override void Init()
Overrides
OnPropertyChanged(string, object, object)
Fired after a property is changed
Declaration
protected override void OnPropertyChanged(string propertyName, object oldValue, object newValue)
Parameters
Overrides
OnPropertyChanging(string, object, ref bool, ref bool)
Called before a property is changed on an object. Derived classes can control how the change is handled.
Throw ArgumentException within this method, to display an error message in the UI.
Declaration
protected override void OnPropertyChanging(string propertyName, object newValue, ref bool undoable, ref bool cancel)
Parameters
Type |
Name |
Description |
string |
propertyName |
Name of the changed property.
|
object |
newValue |
New value assigned to the property.
|
bool |
undoable |
Return false if automatic undo of the property change is not needed.
|
bool |
cancel |
Return true if the property change should not apply.
|
Overrides
SetExpression(ExpressionProperty, string)
Declaration
public override void SetExpression(ExpressionProperty expressionProperty, string expression)
Parameters
Overrides
Implements
Extension Methods