Skip to main content

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
TypeName
ServiceStack.QueryDataContextctx
System.ObjectrequestDto
ServiceStack.Caching.ICacheClientcache
System.Nullable<System.TimeSpan>expiresIn
System.StringcacheKey
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
TypeName
ServiceStack.QueryDataContextctx
System.ObjectrequestDto
Type Parameters
  • T

GetResults<T>(Object)

View Source
Declaration
public static IEnumerable<T> GetResults<T>(object response)
Returns

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

Parameters
TypeName
System.Objectresponse
Type Parameters
  • T

GetResults(Object)

View Source
Declaration
public static List<object> GetResults(object response)
Returns

System.Collections.Generic.List<System.Object>

Parameters
TypeName
System.Objectresponse