Interface IDataQuery<T>
Specialized read only data source interface
Inherited Members
Namespace: XData
Assembly: XData.docfx.dll
Syntax
public interface IDataQuery<out T> : IDataQuery, IDisposable, IOrderedQueryable<T>, IOrderedQueryable, IQueryable<T>, IEnumerable<T>, IQueryable, IEnumerable
Type Parameters
| Name | Description |
|---|---|
| T | Data source type |
Methods
| Improve this Doc View SourceGetFilterValue(RuntimeFilter)
Get metadata defined RuntimeFilter value
Declaration
object GetFilterValue(RuntimeFilter filter)
Parameters
| Type | Name | Description |
|---|---|---|
| RuntimeFilter | filter | Filter |
Returns
| Type | Description |
|---|---|
| Object | Filter value |
Exceptions
| Type | Condition |
|---|---|
| XDataRuntimeException | "filter" parameter is null. |
See Also
| Improve this Doc View SourceReset()
Reset repository structure and filter values
Declaration
IDataQuery<T> Reset()
Returns
| Type | Description |
|---|---|
| IDataQuery<T> | Self repository link |
See Also
| Improve this Doc View SourceSetFilterValue(RuntimeFilter, Object)
Set metadata defined RuntimeFilter value
Declaration
IDataQuery<T> SetFilterValue(RuntimeFilter filter, object val)
Parameters
| Type | Name | Description |
|---|---|---|
| RuntimeFilter | filter | Filter |
| Object | val | Filter value |
Returns
| Type | Description |
|---|---|
| IDataQuery<T> | Self repository link |
Remarks
Hint: Set val = null to clear filter
Exceptions
| Type | Condition |
|---|---|
| XDataRuntimeException | "filter" parameter is null. |
See Also
Extension Methods
AsyncExtensions.MaxAsync<T, TResult>(IQueryable<T>, Expression<Func<T, TResult>>, CancellationToken)
AsyncExtensions.MinAsync<T, TResult>(IQueryable<T>, Expression<Func<T, TResult>>, CancellationToken)
AsyncExtensions.SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Single>>>, CancellationToken)
AsyncExtensions.SumAsync<T>(IQueryable<T>, Expression<Func<T, Nullable<Double>>>, CancellationToken)