Skip to main content

AutoQueryData

Assembly: ServiceStack.dll
View Source
Declaration
public class AutoQueryData : IAutoQueryData, IAutoQueryDataOptions

Properties

MaxLimit

View Source
Declaration
public int? MaxLimit { get; set; }

IncludeTotal

View Source
Declaration
public bool IncludeTotal { get; set; }

EnableUntypedQueries

View Source
Declaration
public bool EnableUntypedQueries { get; set; }

OrderByPrimaryKeyOnLimitQuery

View Source
Declaration
public bool OrderByPrimaryKeyOnLimitQuery { get; set; }

RequiredRoleForRawSqlFilters

View Source
Declaration
public string RequiredRoleForRawSqlFilters { get; set; }

IgnoreProperties

View Source
Declaration
public HashSet<string> IgnoreProperties { get; set; }

StartsWithConventions

View Source
Declaration
public Dictionary<string, QueryDataField> StartsWithConventions { get; set; }

EndsWithConventions

View Source
Declaration
public Dictionary<string, QueryDataField> EndsWithConventions { get; set; }

GlobalQueryFilter

View Source
Declaration
public QueryDataFilterDelegate GlobalQueryFilter { get; set; }

QueryFilters

View Source
Declaration
public Dictionary<Type, QueryDataFilterDelegate> QueryFilters { get; set; }

ResponseFilters

View Source
Declaration
public List<Action<QueryDataFilterContext>> ResponseFilters { get; set; }

Methods

GetFromType(Type)

View Source
Declaration
public Type GetFromType(Type requestDtoType)
Returns

System.Type

Parameters
TypeName
System.TyperequestDtoType

GetTypedQuery(Type, Type)

View Source
Declaration
public ITypedQueryData GetTypedQuery(Type requestDtoType, Type fromType)
Returns

ServiceStack.ITypedQueryData

Parameters
TypeName
System.TyperequestDtoType
System.TypefromType

Filter<From>(IDataQuery, IQueryData, IRequest)

View Source
Declaration
public DataQuery<From> Filter<From>(IDataQuery q, IQueryData dto, IRequest req)
Returns

ServiceStack.DataQuery<T>

Parameters
TypeName
ServiceStack.IDataQueryq
ServiceStack.IQueryDatadto
ServiceStack.Web.IRequestreq
Type Parameters
  • From

Filter(IDataQuery, IQueryData, IRequest)

View Source
Declaration
public IDataQuery Filter(IDataQuery q, IQueryData dto, IRequest req)
Returns

ServiceStack.IDataQuery

Parameters
TypeName
ServiceStack.IDataQueryq
ServiceStack.IQueryDatadto
ServiceStack.Web.IRequestreq

ResponseFilter<From, Into>(IQueryDataSource, QueryResponse<Into>, DataQuery<From>, IQueryData)

View Source
Declaration
public QueryResponse<Into> ResponseFilter<From, Into>(IQueryDataSource db, QueryResponse<Into> response, DataQuery<From> expr, IQueryData dto)
Returns

ServiceStack.QueryResponse<T>

Parameters
TypeName
ServiceStack.IQueryDataSourcedb
ServiceStack.QueryResponse<T>response
ServiceStack.DataQuery<T>expr
ServiceStack.IQueryDatadto
Type Parameters
  • From
  • Into

GetDb<From>(QueryDataContext)

View Source
Declaration
public IQueryDataSource GetDb<From>(QueryDataContext ctx)
Returns

ServiceStack.IQueryDataSource

Parameters
TypeName
ServiceStack.QueryDataContextctx
Type Parameters
  • From

GetDb(QueryDataContext, Type)

View Source
Declaration
public IQueryDataSource GetDb(QueryDataContext ctx, Type type)
Returns

ServiceStack.IQueryDataSource

Parameters
TypeName
ServiceStack.QueryDataContextctx
System.Typetype

CreateQuery<From>(IQueryData<From>, Dictionary<String, String>, IRequest, IQueryDataSource)

View Source
Declaration
public DataQuery<From> CreateQuery<From>(IQueryData<From> dto, Dictionary<string, string> dynamicParams, IRequest req = null, IQueryDataSource db = null)
Returns

ServiceStack.DataQuery<T>

Parameters
TypeName
ServiceStack.IQueryData<From>dto
System.Collections.Generic.Dictionary<System.String,System.String>dynamicParams
ServiceStack.Web.IRequestreq
ServiceStack.IQueryDataSourcedb
Type Parameters
  • From

Execute<From>(IQueryData<From>, DataQuery<From>, IRequest, IQueryDataSource)

View Source
Declaration
public QueryResponse<From> Execute<From>(IQueryData<From> dto, DataQuery<From> q, IRequest req = null, IQueryDataSource db = null)
Returns

ServiceStack.QueryResponse<T>

Parameters
TypeName
ServiceStack.IQueryData<From>dto
ServiceStack.DataQuery<T>q
ServiceStack.Web.IRequestreq
ServiceStack.IQueryDataSourcedb
Type Parameters
  • From

CreateQuery<From, Into>(IQueryData<From, Into>, Dictionary<String, String>, IRequest, IQueryDataSource)

View Source
Declaration
public DataQuery<From> CreateQuery<From, Into>(IQueryData<From, Into> dto, Dictionary<string, string> dynamicParams, IRequest req = null, IQueryDataSource db = null)
Returns

ServiceStack.DataQuery<T>

Parameters
TypeName
ServiceStack.IQueryData<From>dto
System.Collections.Generic.Dictionary<System.String,System.String>dynamicParams
ServiceStack.Web.IRequestreq
ServiceStack.IQueryDataSourcedb
Type Parameters
  • From
  • Into

Execute<From, Into>(IQueryData<From, Into>, DataQuery<From>, IRequest, IQueryDataSource)

View Source
Declaration
public QueryResponse<Into> Execute<From, Into>(IQueryData<From, Into> dto, DataQuery<From> q, IRequest req = null, IQueryDataSource db = null)
Returns

ServiceStack.QueryResponse<T>

Parameters
TypeName
ServiceStack.IQueryData<From>dto
ServiceStack.DataQuery<T>q
ServiceStack.Web.IRequestreq
ServiceStack.IQueryDataSourcedb
Type Parameters
  • From
  • Into

CreateQuery(IQueryData, Dictionary<String, String>, IRequest, IQueryDataSource)

View Source
Declaration
public IDataQuery CreateQuery(IQueryData requestDto, Dictionary<string, string> dynamicParams, IRequest req = null, IQueryDataSource db = null)
Returns

ServiceStack.IDataQuery

Parameters
TypeName
ServiceStack.IQueryDatarequestDto
System.Collections.Generic.Dictionary<System.String,System.String>dynamicParams
ServiceStack.Web.IRequestreq
ServiceStack.IQueryDataSourcedb

CreateContext(IQueryData, Dictionary<String, String>, IRequest)

View Source
Declaration
public QueryDataContext CreateContext(IQueryData requestDto, Dictionary<string, string> dynamicParams, IRequest req)
Returns

ServiceStack.QueryDataContext

Parameters
TypeName
ServiceStack.IQueryDatarequestDto
System.Collections.Generic.Dictionary<System.String,System.String>dynamicParams
ServiceStack.Web.IRequestreq

Execute(IQueryData, IDataQuery, IQueryDataSource)

View Source
Declaration
public IQueryResponse Execute(IQueryData request, IDataQuery q, IQueryDataSource db)
Returns

ServiceStack.IQueryResponse

Parameters
TypeName
ServiceStack.IQueryDatarequest
ServiceStack.IDataQueryq
ServiceStack.IQueryDataSourcedb

Implements