ClassQueryableDataProvider
Represents an IDataProvider that works with IQueryable sources.
Definition
Namespace:Telerik.Pivot.Queryable
Assembly:Telerik.Pivot.DataProviders.Queryable.dll
Syntax:
public class QueryableDataProvider : DataProviderBase, IDataProvider, INotifyPropertyChanged, ISupportInitialize
Inheritance: objectDataProviderBaseQueryableDataProvider
Implements:
Inherited Members
Constructors
QueryableDataProvider()
Initializes a new instance of the QueryableDataProvider class.
Declaration
public QueryableDataProvider()
Properties
AggregateDescriptions
A list of QueryableAggregateDescription that specified how the pivot should be aggregated for the groups.
Declaration
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists", Justification = "Design choice.")]
public Collection<QueryableAggregateDescriptionBase> AggregateDescriptions { get; }
Property Value
CalculatedFields
Gets a list of CalculatedFields that can be used as a calculated aggregate values.
Declaration
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists", Justification = "Design choice.")]
public Collection<CalculatedField> CalculatedFields { get; }
Property Value
ColumnGroupDescriptions
A list of QueryableGroupDescription that specified how the pivot should be grouped by columns.
Declaration
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists", Justification = "Design choice.")]
public Collection<QueryableGroupDescription> ColumnGroupDescriptions { get; }
Property Value
Culture
Gets or sets the CultureInfo used for grouping and formatting.
FilterDescriptions
A list of FilterDescription that specified how the pivot items should be filtered.
Declaration
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists", Justification = "Design choice.")]
public Collection<QueryableFilterDescription> FilterDescriptions { get; }
Property Value
Results
Declaration
protected override IPivotResults Results { get; }
Property Value
IPivotResults
Overrides
RowGroupDescriptions
A list of QueryableGroupDescription that specified how the pivot should be grouped by rows.
Declaration
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists", Justification = "Design choice.")]
public Collection<QueryableGroupDescription> RowGroupDescriptions { get; }
Property Value
Source
Gets or sets the IQueryable data source.
State
Gets the state object that is provided to GetDescriptionsDataAsync(object) method.
Declaration
public override object State { get; }
Property Value
The object that will be passed to GetDescriptionsDataAsync(object) method.
Overrides
Methods
BlockUntilRefreshCompletes()
Block the calling thread until all calculations performed by calling Refresh() method completes.
Declaration
public override void BlockUntilRefreshCompletes()
Overrides
CreateFieldDescriptionsProvider()
Creates an instance of IFieldDescriptionProvider for this IDataProvider.
Declaration
protected override IFieldDescriptionProvider CreateFieldDescriptionsProvider()
Returns
Overrides
GetAggregateDescriptionForFieldDescriptionCore(IPivotFieldInfo)
Creates and returns an aggregate description suitable for the supplied field description.
Declaration
protected override IAggregateDescription GetAggregateDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
Parameters
description
A IPivotFieldInfo instance.
Returns
An IAggregateDescription instance.
Overrides
GetAggregateFunctionsForAggregateDescription(IAggregateDescription)
Returns a list of suitable functions for the supplied aggregate description.
Declaration
[Obsolete("Not used. Obsoleted after 2013.Q2.SP1")]
public override IEnumerable<object> GetAggregateFunctionsForAggregateDescription(IAggregateDescription aggregateDescription)
Parameters
aggregateDescription
Returns
A list of possible aggregate functions.
Overrides
GetFilterDescriptionForFieldDescriptionCore(IPivotFieldInfo)
Returns a filter description suitable for the supplied field description.
Declaration
protected override FilterDescription GetFilterDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
Parameters
description
A IPivotFieldInfo instance.
Returns
An FilterDescription instance.
Overrides
GetGroupDescriptionForFieldDescriptionCore(IPivotFieldInfo)
Creates and returns a group description suitable for the supplied field description.
Declaration
protected override IGroupDescription GetGroupDescriptionForFieldDescriptionCore(IPivotFieldInfo description)
Parameters
description
A IPivotFieldInfo instance.
Returns
An IGroupDescription instance.
Overrides
RefreshOverride()
Recreates the Results.
Declaration
protected override void RefreshOverride()
Overrides
SetAggregateFunctionToAggregateDescription(IAggregateDescription, object)
Set the aggregateFunction retrieved from GetAggregateFunctionsForAggregateDescription(IAggregateDescription) to the aggregateDescription.
Declaration
[Obsolete("Not used. Obsoleted after 2013.Q2.SP1")]
public override void SetAggregateFunctionToAggregateDescription(IAggregateDescription aggregateDescription, object aggregateFunction)
Parameters
aggregateDescription
aggregateFunction
The aggregate function.
Overrides