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
Type | Name |
---|---|
ServiceStack.IDataQuery | q |
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
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<<TItem>> | data |
ServiceStack.IQueryData | dto |
ServiceStack.Web.IRequest | req |
Type Parameters
TItem
Implements
- ServiceStack.IQueryDataSource<T>
- ServiceStack.IQueryDataSource
System.IDisposable