Skip to main content

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

ServiceStack.IDataQuery

Type Parameters
  • TSource

GetDataSource(IDataQuery)

View Source
Declaration
public abstract IEnumerable<T> GetDataSource(IDataQuery q)
Returns

System.Collections.Generic.IEnumerable<<T>>

Parameters
TypeName
ServiceStack.IDataQueryq

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
TypeName
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
TypeName
ServiceStack.IDataQueryq
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
TypeName
System.Collections.Generic.IEnumerable<<T>>source
ServiceStack.OrderByExpressionorderBy

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
TypeName
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
TypeName
ServiceStack.IDataQueryq

SelectAggregate(IDataQuery, String, IEnumerable<String>)

View Source
Declaration
public virtual object SelectAggregate(IDataQuery q, string name, IEnumerable<string> args)
Returns

System.Object

Parameters
TypeName
ServiceStack.IDataQueryq
System.Stringname
System.Collections.Generic.IEnumerable<System.String>args

Dispose()

View Source
Declaration
public virtual void Dispose()

Implements