AutoQueryDataFeature
Assembly: ServiceStack.dll
View Source
Declaration
public class AutoQueryDataFeature : IPlugin, IPostInitPlugin, IHasStringId, IHasId<string>
Properties
Id
View Source
Declaration
public string Id { get; set; }
IgnoreProperties
View Source
Declaration
public HashSet<string> IgnoreProperties { get; set; }
LoadFromAssemblies
View Source
Declaration
public HashSet<Assembly> LoadFromAssemblies { get; set; }
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; }
EnableAutoQueryViewer
View Source
Declaration
public bool EnableAutoQueryViewer { get; set; }
OrderByPrimaryKeyOnPagedQuery
View Source
Declaration
public bool OrderByPrimaryKeyOnPagedQuery { get; set; }
AutoQueryServiceBaseType
View Source
Declaration
public Type AutoQueryServiceBaseType { 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; }
GenerateServiceFilter
View Source
Declaration
public Action<TypeBuilder, MethodBuilder, Type> GenerateServiceFilter { get; set; }
DataSources
View Source
Declaration
public ConcurrentDictionary<Type, Func<QueryDataContext, IQueryDataSource>> DataSources { get; }
Fields
Conditions
View Source
Declaration
public List<QueryCondition> Conditions
ConditionsAliases
View Source
Declaration
public Dictionary<string, QueryCondition> ConditionsAliases
ImplicitConventions
View Source
Declaration
public Dictionary<string, string> ImplicitConventions
StartsWithConventions
View Source
Declaration
public Dictionary<string, QueryDataField> StartsWithConventions
EndsWithConventions
View Source
Declaration
public Dictionary<string, QueryDataField> EndsWithConventions
Methods
Register(IAppHost)
View Source
Declaration
public void Register(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
AfterPluginsLoaded(IAppHost)
View Source
Declaration
public void AfterPluginsLoaded(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
RegisterQueryFilter<Request>(Action<IDataQuery, Request, IRequest>)
View Source
Declaration
public AutoQueryDataFeature RegisterQueryFilter<Request>(Action<IDataQuery, Request, IRequest> filterFn)
Returns
ServiceStack.AutoQueryDataFeature
Parameters
Type | Name |
---|---|
System.Action<ServiceStack.IDataQuery,<Request>,ServiceStack.Web.IRequest> | filterFn |
Type Parameters
Request
AddDataSource<T>(Func<QueryDataContext, IQueryDataSource<T>>)
View Source
Declaration
public AutoQueryDataFeature AddDataSource<T>(Func<QueryDataContext, IQueryDataSource<T>> dataSourceFactory)
Returns
ServiceStack.AutoQueryDataFeature
Parameters
Type | Name |
---|---|
System.Func<ServiceStack.QueryDataContext,ServiceStack.IQueryDataSource<<T>>> | dataSourceFactory |
Type Parameters
T
AddDataSource<T>(Func<QueryDataContext, IQueryDataSource>)
View Source
Declaration
public AutoQueryDataFeature AddDataSource<T>(Func<QueryDataContext, IQueryDataSource> dataSourceFactory)
Returns
ServiceStack.AutoQueryDataFeature
Parameters
Type | Name |
---|---|
System.Func<ServiceStack.QueryDataContext,ServiceStack.IQueryDataSource> | dataSourceFactory |
Type Parameters
T
AddDataSource(Type, Func<QueryDataContext, IQueryDataSource>)
View Source
Declaration
public AutoQueryDataFeature AddDataSource(Type type, Func<QueryDataContext, IQueryDataSource> dataSourceFactory)
Returns
ServiceStack.AutoQueryDataFeature
Parameters
Type | Name |
---|---|
System.Type | type |
System.Func<ServiceStack.QueryDataContext,ServiceStack.IQueryDataSource> | dataSourceFactory |
GetDataSource(Type)
View Source
Declaration
public Func<QueryDataContext, IQueryDataSource> GetDataSource(Type type)
Returns
System.Func<ServiceStack.QueryDataContext,ServiceStack.IQueryDataSource>
Parameters
Type | Name |
---|---|
System.Type | type |
IncludeAggregates(QueryDataFilterContext)
View Source
Declaration
public void IncludeAggregates(QueryDataFilterContext ctx)
Parameters
Type | Name |
---|---|
ServiceStack.QueryDataFilterContext | ctx |