Table of Contents

Class PartitionCollection

Inheritance
PartitionCollection
Implements
Inherited Members
Namespace
TabularEditor.TOMWrapper
Assembly
TOMWrapper.dll

Collection class for Partition. Provides convenient properties for setting a property on multiple objects at once.

public sealed class PartitionCollection : TabularObjectCollection<Partition>, INotifyCollectionChanged, IReadOnlyList<Partition>, IReadOnlyCollection<Partition>, IEnumerable<Partition>, IEnumerable, ITabularObjectContainer, ITabularTableObject, ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject
Extension Methods

Properties

Count

The number of items in this collection.

public override int Count { get; }

Property Value

Type Description
int

DataView

Sets the DataView property of all objects in the collection at once.

public DataViewType DataView { set; }

Property Value

Type Description
DataViewType

Description

Sets the Description property of all objects in the collection at once.

public string Description { set; }

Property Value

Type Description
string

Mode

Sets the Mode property of all objects in the collection at once.

public ModeType Mode { set; }

Property Value

Type Description
ModeType

PropertyGridPartitions

This property points to the PartitionCollection itself. It is used only to display a clickable "Partitions" property in the Property Grid, which will open the PartitionCollectionEditor when clicked.

public PartitionCollection PropertyGridPartitions { get; }

Property Value

Type Description
PartitionCollection

QueryGroup

Sets the QueryGroup property of all objects in the collection at once.

public QueryGroup QueryGroup { set; }

Property Value

Type Description
QueryGroup

Methods

ConvertToLegacy(ProviderDataSource)

Converts all M partitions in this collection to regular partitions. The M query is left as-is and needs to be converted to SQL before the partition can be processed.

public void ConvertToLegacy(ProviderDataSource providerSource = null)

Parameters

Type Name Description
ProviderDataSource providerSource

ConvertToPowerQuery()

Converts all provider source partitions in this collection to M partitions. The provider query is left as-is and needs to be converted to an M query before the partition can be processed.

public void ConvertToPowerQuery()

GetEnumerator()

Returns an enumerator that iterates through the collection.

public override IEnumerator<Partition> GetEnumerator()

Returns

Type Description
IEnumerator<Partition>

Events

PropertyChanged

public event PropertyChangedEventHandler PropertyChanged

Event Type

Type Description
PropertyChangedEventHandler