AutoQueryDataServiceSource
Assembly: ServiceStack.dll
View Source
Declaration
public static class AutoQueryDataServiceSource
Methods
ServiceSource<T>(QueryDataContext, Object, ICacheClient, Nullable<TimeSpan>, String)
View Source
Declaration
public static QueryDataSource<T> ServiceSource<T>(this QueryDataContext ctx, object requestDto, ICacheClient cache, TimeSpan? expiresIn = null, string cacheKey = null)
Returns
ServiceStack.QueryDataSource<T>
Parameters
Type | Name |
---|---|
ServiceStack.QueryDataContext | ctx |
System.Object | requestDto |
ServiceStack.Caching.ICacheClient | cache |
System.Nullable<System.TimeSpan> | expiresIn |
System.String | cacheKey |
Type Parameters
T
ServiceSource<T>(QueryDataContext, Object)
View Source
Declaration
public static MemoryDataSource<T> ServiceSource<T>(this QueryDataContext ctx, object requestDto)
Returns
ServiceStack.MemoryDataSource<T>
Parameters
Type | Name |
---|---|
ServiceStack.QueryDataContext | ctx |
System.Object | requestDto |
Type Parameters
T
GetResults<T>(Object)
View Source
Declaration
public static IEnumerable<T> GetResults<T>(object response)
Returns
System.Collections.Generic.IEnumerable<<T>>
Parameters
Type | Name |
---|---|
System.Object | response |
Type Parameters
T
GetResults(Object)
View Source
Declaration
public static List<object> GetResults(object response)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|---|
System.Object | response |