Class QueryableDomainServiceCollectionView<TEntity>
Represents a view for accessing and manipulating strongly-typed data provided by a DomainContext.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Controls.DomainServices.dll
Syntax
public class QueryableDomainServiceCollectionView<TEntity> : QueryableDomainServiceCollectionViewBase, IEditableCollectionViewAddNewItem, IEditableCollectionView, ICollectionView, INotifyCollectionChanged, INotifyPropertyChanged, IPagedCollectionView, IWeakEventListener<NotifyCollectionChangedEventArgs>, IWeakEventListener<CurrentChangingEventArgs>, IQueryableCollectionView, IItemProperties, IDisposable, IEnumerable<TEntity>, IEnumerable where TEntity : Entity
Type Parameters
TEntity
The type of the entity. |
Constructors
QueryableDomainServiceCollectionView(DomainContext, EntityQuery<TEntity>)
Initializes a new instance of the QueryableDomainServiceCollectionView<TEntity> class.
Declaration
public QueryableDomainServiceCollectionView(DomainContext domainContext, EntityQuery<TEntity> entityQuery)
Parameters
System.ServiceModel.DomainServices.Client.DomainContext
domainContext
The domain context. |
System.ServiceModel.DomainServices.Client.EntityQuery<TEntity>
entityQuery
The entity query. |
Properties
EffectiveSortDescriptors
Gets the effective sort descriptors.
Declaration
public IEnumerable<ISortDescriptor> EffectiveSortDescriptors { get; }
Property Value
System.Collections.Generic.IEnumerable<ISortDescriptor>
The effective sort descriptors. |
EntityQuery
Gets the entity query.
Declaration
public EntityQuery<TEntity> EntityQuery { get; }
Property Value
System.ServiceModel.DomainServices.Client.EntityQuery<TEntity>
The entity query. |
Methods
CreateInternalList()
Called when internal list needs to be created.
Declaration
protected override void CreateInternalList()
Overrides
CreateView()
Returns System.Linq.IQueryable with applied filtering, sorting, grouping and paging.
Declaration
protected override IQueryable CreateView()
Returns
System.Linq.IQueryable
|
Overrides
GetEffectiveItemCount()
Gets the count of items depending on the page and/or grouped state.
Declaration
protected override int GetEffectiveItemCount()
Returns
System.Int32
The count of items. |
Overrides
OnFilterDescriptorsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Invoked when the FilterDescriptors collection changes.
Declaration
protected override void OnFilterDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System.Object
sender
Current instance of the QueryableCollectionView collection. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
Information about the change. |
Overrides
OnFilterDescriptorsItemChanged(Object, ItemChangedEventArgs<IFilterDescriptor>)
Invoked when the FilterDescriptors item changes.
Declaration
protected override void OnFilterDescriptorsItemChanged(object sender, ItemChangedEventArgs<IFilterDescriptor> e)
Parameters
System.Object
sender
Current instance of the QueryableCollectionView collection. |
ItemChangedEventArgs<IFilterDescriptor>
e
Information about the change. |
Overrides
OnFilterDescriptorsLogicalOperatorChanged()
Invoked when the FilterDescriptors logical operator changes.
Declaration
protected override void OnFilterDescriptorsLogicalOperatorChanged()
Overrides
OnGroupDescriptorsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Invoked when the Telerik.Windows.Data.QueryableCollectionView.roupDescriptors collection changes.
Declaration
protected override void OnGroupDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System.Object
sender
Current instance of the QueryableCollectionView collection. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
Information about the change. |
Overrides
OnGroupDescriptorsItemChanged(Object, ItemChangedEventArgs<IGroupDescriptor>)
Invoked when the GroupDescriptors item changes.
Declaration
protected override void OnGroupDescriptorsItemChanged(object sender, ItemChangedEventArgs<IGroupDescriptor> e)
Parameters
System.Object
sender
Current instance of the QueryableCollectionView collection. |
ItemChangedEventArgs<IGroupDescriptor>
e
Information about the change. |
Overrides
OnSortDescriptorsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Invoked when the SortDescriptors collection changes.
Declaration
protected override void OnSortDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System.Object
sender
Current instance of the QueryableCollectionView collection. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
Information about the change. |
Overrides
OnSortDescriptorsItemChanged(Object, ItemChangedEventArgs<ISortDescriptor>)
Invoked when the SortDescriptors item changes.
Declaration
protected override void OnSortDescriptorsItemChanged(object sender, ItemChangedEventArgs<ISortDescriptor> e)
Parameters
System.Object
sender
Current instance of the QueryableCollectionView collection. |
ItemChangedEventArgs<ISortDescriptor>
e
Information about the change. |
Overrides
UpdateTotalItemCount()
Called when the count of all items should be updated.
Declaration
protected override void UpdateTotalItemCount()