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
Type | Name |
---|---|
System.Type | requestDtoType |
GetTypedQuery(Type, Type)
View Source
Declaration
public ITypedQueryData GetTypedQuery(Type requestDtoType, Type fromType)
Returns
Parameters
Type | Name |
---|---|
System.Type | requestDtoType |
System.Type | fromType |
Filter<From>(IDataQuery, IQueryData, IRequest)
View Source
Declaration
public DataQuery<From> Filter<From>(IDataQuery q, IQueryData dto, IRequest req)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.IDataQuery | q |
ServiceStack.IQueryData | dto |
ServiceStack.Web.IRequest | req |
Type Parameters
From
Filter(IDataQuery, IQueryData, IRequest)
View Source
Declaration
public IDataQuery Filter(IDataQuery q, IQueryData dto, IRequest req)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.IDataQuery | q |
ServiceStack.IQueryData | dto |
ServiceStack.Web.IRequest | req |
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
Parameters
Type | Name |
---|---|
ServiceStack.IQueryDataSource | db |
ServiceStack.QueryResponse<T> | response |
ServiceStack.DataQuery<T> | expr |
ServiceStack.IQueryData | dto |
Type Parameters
From
Into
GetDb<From>(QueryDataContext)
View Source
Declaration
public IQueryDataSource GetDb<From>(QueryDataContext ctx)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.QueryDataContext | ctx |
Type Parameters
From
GetDb(QueryDataContext, Type)
View Source
Declaration
public IQueryDataSource GetDb(QueryDataContext ctx, Type type)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.QueryDataContext | ctx |
System.Type | type |
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
Parameters
Type | Name |
---|---|
ServiceStack.IQueryData<From> | dto |
System.Collections.Generic.Dictionary<System.String,System.String> | dynamicParams |
ServiceStack.Web.IRequest | req |
ServiceStack.IQueryDataSource | db |
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
Parameters
Type | Name |
---|---|
ServiceStack.IQueryData<From> | dto |
ServiceStack.DataQuery<T> | q |
ServiceStack.Web.IRequest | req |
ServiceStack.IQueryDataSource | db |
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
Parameters
Type | Name |
---|---|
ServiceStack.IQueryData<From> | dto |
System.Collections.Generic.Dictionary<System.String,System.String> | dynamicParams |
ServiceStack.Web.IRequest | req |
ServiceStack.IQueryDataSource | db |
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
Parameters
Type | Name |
---|---|
ServiceStack.IQueryData<From> | dto |
ServiceStack.DataQuery<T> | q |
ServiceStack.Web.IRequest | req |
ServiceStack.IQueryDataSource | db |
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
Parameters
Type | Name |
---|---|
ServiceStack.IQueryData | requestDto |
System.Collections.Generic.Dictionary<System.String,System.String> | dynamicParams |
ServiceStack.Web.IRequest | req |
ServiceStack.IQueryDataSource | db |
CreateContext(IQueryData, Dictionary<String, String>, IRequest)
View Source
Declaration
public QueryDataContext CreateContext(IQueryData requestDto, Dictionary<string, string> dynamicParams, IRequest req)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.IQueryData | requestDto |
System.Collections.Generic.Dictionary<System.String,System.String> | dynamicParams |
ServiceStack.Web.IRequest | req |
Execute(IQueryData, IDataQuery, IQueryDataSource)
View Source
Declaration
public IQueryResponse Execute(IQueryData request, IDataQuery q, IQueryDataSource db)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.IQueryData | request |
ServiceStack.IDataQuery | q |
ServiceStack.IQueryDataSource | db |