QueryDataSource<T>
Assembly: ServiceStack.dll
View Source
Declaration
public abstract class QueryDataSource<T> : IQueryDataSource<T>, IQueryDataSource, IDisposable
Methods
From<TSource>()
View Source
Declaration
public virtual IDataQuery From<TSource>()
Returns
Type Parameters
TSource
GetDataSource(IDataQuery)
View Source
Declaration
public abstract IEnumerable<T> GetDataSource(IDataQuery q)
Returns
System.Collections.Generic.IEnumerable<<T>>
Parameters
Type | Name |
---|---|
ServiceStack.IDataQuery | q |
ApplyConditions(IEnumerable<T>, IEnumerable<DataConditionExpression>)
View Source
Declaration
public virtual IEnumerable<T> ApplyConditions(IEnumerable<T> data, IEnumerable<DataConditionExpression> conditions)
Returns
System.Collections.Generic.IEnumerable<<T>>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<<T>> | data |
System.Collections.Generic.IEnumerable<ServiceStack.DataConditionExpression> | conditions |
LoadSelect<Into, From>(IDataQuery)
View Source
Declaration
public virtual List<Into> LoadSelect<Into, From>(IDataQuery q)
Returns
System.Collections.Generic.List<<Into>>
Parameters
Type | Name |
---|---|
ServiceStack.IDataQuery | q |
Type Parameters
Into
From
ApplySorting(IEnumerable<T>, OrderByExpression)
View Source
Declaration
public virtual IEnumerable<T> ApplySorting(IEnumerable<T> source, OrderByExpression orderBy)
Returns
System.Collections.Generic.IEnumerable<<T>>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<<T>> | source |
ServiceStack.OrderByExpression | orderBy |
ApplyLimits(IEnumerable<T>, Nullable<Int32>, Nullable<Int32>)
View Source
Declaration
public virtual IEnumerable<T> ApplyLimits(IEnumerable<T> source, int? skip, int? take)
Returns
System.Collections.Generic.IEnumerable<<T>>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<<T>> | source |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
Count(IDataQuery)
View Source
Declaration
public virtual int Count(IDataQuery q)
Returns
System.Int32
Parameters
Type | Name |
---|---|
ServiceStack.IDataQuery | q |
SelectAggregate(IDataQuery, String, IEnumerable<String>)
View Source
Declaration
public virtual object SelectAggregate(IDataQuery q, string name, IEnumerable<string> args)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.IDataQuery | q |
System.String | name |
System.Collections.Generic.IEnumerable<System.String> | args |
Dispose()
View Source
Declaration
public virtual void Dispose()
Implements
- ServiceStack.IQueryDataSource<T>
- ServiceStack.IQueryDataSource
System.IDisposable