[]
        
(Showing Draft Content)

C1.LiveLinq.LiveViews.View-1

View<T> Class

Represents a live view: a LINQ query result that supports two-way data binding and is kept up-to-date with base data.

Inheritance
View<T>
AggregationView<TSource, TResult>
GroupView<TKey, TElement>
Namespace: C1.LiveLinq.LiveViews
Assembly: C1.LiveLinq.4.8.dll
Syntax
public class View<T> : View, IList, ICollection, IDisposable, INotifyPropertyChanged, IListSource, ITypedList, IItemProperties, ICollectionView, INotifyCollectionChanged, IEditableCollectionView, IList<T>, ICollection<T>, IObservableSource<T>, IIndexedSource<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name Description
T

The type of the elements in the view.

Properties

Name Description
Indexes

Gets the collection of indexes for this view.

this[int]

Gets the view item (element) at the specified ordinal position.

Methods

Name Description
AttachAggregationView<TResult>(Func<View<T>, AggregationView<T, TResult>>)

Includes an aggregation subquery into the incremental maintenance mechanism of a view.

AttachAggregationView<TResult>(object, Func<View<T>, AggregationView<T, TResult>>)

Includes an aggregation subquery into the incremental maintenance mechanism of a view and uniquely identifies it among other subqueries of the same view.

AttachView<TResult>(Func<View<T>, View<TResult>>)

Includes a subquery into the incremental maintenance mechanism of a view.

AttachView<TResult>(object, Func<View<T>, View<TResult>>)

Includes a subquery into the incremental maintenance mechanism of a view and uniquely identifies it among other subqueries of the same view.

Concat(IObservableSource<T>)

Concatenation of two views.

Contains(T)

Determines whether the view contains a specified item.

GetEnumerator()

Returns an enumerator that iterates through the view items.

GroupBy<TKey>(Expression<Func<T, TKey>>)

Groups the elements of a view according to a specified key selector function.

GroupBy<TKey, TElement>(Expression<Func<T, TKey>>, Expression<Func<T, TElement>>)

Groups the elements of a view according to a specified key selector function and projects the elements for each group by using a specified function.

GroupBy<TKey, TElement, TResult>(Expression<Func<T, TKey>>, Expression<Func<T, TElement>>, Expression<Func<TKey, IEnumerable<TElement>, TResult>>)

Groups the elements of a view according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.

GroupJoin<TInner, TKey, TResult>(IObservableSource<TInner>, Expression<Func<T, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<T, GroupView<TKey, TInner>, TResult>>)

Correlates the elements of two views based on equality of keys and groups the results.

IndexOf(T)

Searches for the specified object among the elements of the view and returns the zero-based ordinal position of its first occurrence.

Join<TInner, TKey, TResult>(IObservableSource<TInner>, Expression<Func<T, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<T, TInner, TResult>>)

Correlates the elements of two views based on matching keys.

OrderByDescending<TKey>(Expression<Func<T, TKey>>)

Sorts the elements of a view in descending order.

OrderBy<TKey>(Expression<Func<T, TKey>>)

Sorts the elements of a view in ascending order.

SelectMany<TResult>(Expression<Func<T, IObservableSource<TResult>>>)

Projects each element of this view to a collection of TResult and flattens the resulting collections into one view.

SelectMany<TCollection, TResult>(Expression<Func<T, IObservableSource<TCollection>>>, Expression<Func<T, TCollection, TResult>>)

Projects each element of this view to a collection of collections, flattens the resulting collections into one collection, and invokes a result selector function on each element therein.

Select<TResult>(Expression<Func<T, TResult>>)

Projects each element of a view into a new form.

ToString()

Returns a string representing this view.

Union(IObservableSource<T>)

Set union of two views.

Where(Expression<Func<T, bool>>)

Filters the source view based on a predicate.

Events

Name Description
Changed

Occurs after an item of the view or the entire view has changed.

Extension Methods