Table of Contents

Class EntityPartition

Inheritance
EntityPartition
Implements
Inherited Members
Namespace
TabularEditor.TOMWrapper
Assembly
TOMWrapper.dll
public class EntityPartition : Partition, ICustomTypeDescriptor, INotifyPropertyChanging, IComparable, ITomErrorMessageObject, ITabularTableObject, IDescriptionObject, IAnnotationObject, IExtendedPropertyObject, IClonableObject, IDaxDependantObject, IExpressionObject, ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject
Extension Methods

Properties

DefaultExpressionProperty

Gets the default expression property on the current object.

public override ExpressionProperty? DefaultExpressionProperty { get; }

Property Value

Type Description
ExpressionProperty?

EntityName

Gets or sets the Name of the underlying referenced object used to query and populate current partition.

public string EntityName { get; set; }

Property Value

Type Description
string

ExpressionSource

The Expression Source used by this partition.

[TypeConverter(typeof(NamedExpressionConverter))]
public NamedExpression ExpressionSource { get; set; }

Property Value

Type Description
NamedExpression

SchemaName

Reserved for future use.

public string SchemaName { get; set; }

Property Value

Type Description
string

Methods

Clone(string, Table)

Creates an exact copy of this Partition object.

public override Partition Clone(string newName = null, Table newParent = null)

Parameters

Type Name Description
string newName
Table newParent

Returns

Type Description
Partition

CreateNew(Table, string)

public static EntityPartition CreateNew(Table parent, string name = null)

Parameters

Type Name Description
Table parent
string name

Returns

Type Description
EntityPartition

GetExpression(ExpressionProperty)

Gets the specified expression from the current object.

public override string GetExpression(ExpressionProperty expressionProperty)

Parameters

Type Name Description
ExpressionProperty expressionProperty

Returns

Type Description
string

Exceptions

InvalidEnumArgumentException

Thrown when the current object does not support the specified ExpressionProperty

GetExpressionProperties()

Gets all supported expression properties on the current object.

public override IEnumerable<ExpressionProperty> GetExpressionProperties()

Returns

Type Description
IEnumerable<ExpressionProperty>

Init()

Derived members should override this method to instantiate child objects

protected override void Init()

SetExpression(ExpressionProperty, string)

Sets the specified expression on the current object.

public override void SetExpression(ExpressionProperty expressionProperty, string expression)

Parameters

Type Name Description
ExpressionProperty expressionProperty
string expression

Exceptions

InvalidEnumArgumentException

Thrown when the current object does not support the specified ExpressionProperty