Class PartitionCollection
Collection class for Partition. Provides convenient properties for setting a property on multiple objects at once.
Implements
Inherited Members
Namespace: TabularEditor.TOMWrapper
Assembly: TOMWrapper.dll
Syntax
public sealed class PartitionCollection : TabularObjectCollection<Partition>, INotifyCollectionChanged, IReadOnlyList<Partition>, IReadOnlyCollection<Partition>, IEnumerable<Partition>, IEnumerable, ITabularObjectContainer, ITabularTableObject, ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject
Properties
Count
The number of items in this collection.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
DataView
Sets the DataView property of all objects in the collection at once.
Declaration
public DataViewType DataView { set; }
Property Value
Type | Description |
---|---|
DataViewType |
Description
Sets the Description property of all objects in the collection at once.
Declaration
public string Description { set; }
Property Value
Type | Description |
---|---|
string |
Mode
Sets the Mode property of all objects in the collection at once.
Declaration
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.
Declaration
public PartitionCollection PropertyGridPartitions { get; }
Property Value
Type | Description |
---|---|
PartitionCollection |
QueryGroup
Sets the QueryGroup property of all objects in the collection at once.
Declaration
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.
Declaration
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.
Declaration
public void ConvertToPowerQuery()
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public override IEnumerator<Partition> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<Partition> |
Overrides
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |