[]
        
(Showing Draft Content)

C1.DataCollection.C1ScopedDataCollection-1

C1ScopedDataCollection<T> Class

Wrap collection that is constrained to get and modify a specific property of the data items without affecting the rest of the properties.

Inheritance
C1ScopedDataCollection<T>
Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public class C1ScopedDataCollection<T> : C1WrapDataCollection<T>, IDataCollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, ISupportIndexing<T>, INotifyPropertyChanged, IDisposable, ISupportSorting, ISupportFiltering, ISupportGrouping, ISupportVirtualization, ISupportConnection, ISupportAsyncLoading<T>, ISupportIncrementalLoading, ISupportRefreshing, ISupportRangeEditing<T>, ISupportEditing<T>, ISupportCreateNewItem<T>, ISupportPaging, ISupportSource where T : class?
Type Parameters
Name Description
T
Remarks

This collection can perform group, filter and sort over the specified property path, without affecting the operations applied to the underlying collection that are not related to the scoped property.

Constructors

Name Description
C1ScopedDataCollection(IEnumerable, string)

Initializes a new instance of the C1ScopedDataCollection<T> class.

Properties

Name Description
FilterExpression

Gets the filter expression applied to the data.

GroupDescriptions

Gets the group descriptions applied to the data.

PropertyPath

Gets or sets the property path to which this collection is scoped.

SortDescriptions

Gets the sort descriptions applied to the data.

Methods

Name Description
CanFilter(FilterExpression?)

Returns whether the collection is able to filter the specified expression.

CanGroup(params GroupDescription[])

Returns whether the collection is able to group the specified group descriptions.

CanSort(params SortDescription[])

Returns whether the collection is able to sort the specified sort descriptions.

FilterAsync(FilterExpression?, CancellationToken)

Filters the data using specified filter expression.

GroupAsync(GroupDescription[], CancellationToken)

Groups the collection according to the specified group descriptions.

SortAsync(SortDescription[], CancellationToken)

Sorts the collection according to the specified sort descriptions.

Extension Methods