Skip to main content

MemoryDataSource<T>

Assembly: ServiceStack.dll
View Source
Declaration
public class MemoryDataSource<T> : QueryDataSource<T>, IQueryDataSource<T>, IQueryDataSource, IDisposable

Properties

Data

View Source
Declaration
public IEnumerable<T> Data { get; }

Methods

GetDataSource(IDataQuery)

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

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

Parameters
TypeName
ServiceStack.IDataQueryq

Create<TItem>(IEnumerable<TItem>, IQueryData, IRequest)

View Source
Declaration
public static MemoryDataSource<TItem> Create<TItem>(IEnumerable<TItem> data, IQueryData dto, IRequest req = null)
Returns

ServiceStack.MemoryDataSource<T>

Parameters
TypeName
System.Collections.Generic.IEnumerable<<TItem>>data
ServiceStack.IQueryDatadto
ServiceStack.Web.IRequestreq
Type Parameters
  • TItem

Implements