Skip to main content

AutoQueryFeature

Assembly: ServiceStack.Server.dll
View Source
Declaration
public class AutoQueryFeature : object, IPlugin, IPreInitPlugin, IPostInitPlugin, IHasStringId, IHasId<string>

Properties

AutoCrudMetadataFilters

View Source
Declaration
public List<Action<AutoCrudMetadata>> AutoCrudMetadataFilters { get; set; }

AccessRole

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

ServiceRoutes

View Source
Declaration
public Dictionary<Type, string[]> ServiceRoutes { get; set; }

GenerateAutoBatchImplementationsFor

Which CRUD operations to implement AutoBatch implementations for

View Source
Declaration
public List<string> GenerateAutoBatchImplementationsFor { get; set; }

OnBeforeCreate

View Source
Declaration
public Action<CrudContext> OnBeforeCreate { get; set; }

OnBeforeCreateAsync

View Source
Declaration
public Func<CrudContext, Task> OnBeforeCreateAsync { get; set; }

OnAfterCreate

View Source
Declaration
public Action<CrudContext> OnAfterCreate { get; set; }

OnAfterCreateAsync

View Source
Declaration
public Func<CrudContext, Task> OnAfterCreateAsync { get; set; }

OnBeforePatch

View Source
Declaration
public Action<CrudContext> OnBeforePatch { get; set; }

OnBeforePatchAsync

View Source
Declaration
public Func<CrudContext, Task> OnBeforePatchAsync { get; set; }

OnAfterPatch

View Source
Declaration
public Action<CrudContext> OnAfterPatch { get; set; }

OnAfterPatchAsync

View Source
Declaration
public Func<CrudContext, Task> OnAfterPatchAsync { get; set; }

OnBeforeUpdate

View Source
Declaration
public Action<CrudContext> OnBeforeUpdate { get; set; }

OnBeforeUpdateAsync

View Source
Declaration
public Func<CrudContext, Task> OnBeforeUpdateAsync { get; set; }

OnAfterUpdate

View Source
Declaration
public Action<CrudContext> OnAfterUpdate { get; set; }

OnAfterUpdateAsync

View Source
Declaration
public Func<CrudContext, Task> OnAfterUpdateAsync { get; set; }

OnBeforeDelete

View Source
Declaration
public Action<CrudContext> OnBeforeDelete { get; set; }

OnBeforeDeleteAsync

View Source
Declaration
public Func<CrudContext, Task> OnBeforeDeleteAsync { get; set; }

OnAfterDelete

View Source
Declaration
public Action<CrudContext> OnAfterDelete { get; set; }

OnAfterDeleteAsync

View Source
Declaration
public Func<CrudContext, Task> OnAfterDeleteAsync { get; set; }

Id

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

IgnoreProperties

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

IllegalSqlFragmentTokens

View Source
Declaration
public HashSet<string> IllegalSqlFragmentTokens { 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; }

StripUpperInLike

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

EnableUntypedQueries

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

EnableRawSqlFilters

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

EnableAutoQueryViewer

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

EnableAsync

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

OrderByPrimaryKeyOnPagedQuery

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

UseNamedConnection

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

ImplicitReferences

Whether to create implicit AutoQuery UI references based on field naming conventions

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

AutoQueryServiceBaseType

View Source
Declaration
public Type AutoQueryServiceBaseType { get; set; }

GlobalQueryFilter

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

QueryFilters

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

ResponseFilters

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

GenerateServiceFilter

View Source
Declaration
public Action<Type, TypeBuilder, MethodBuilder, ILGenerator> GenerateServiceFilter { get; set; }

GenerateCrudServices

Enable code-gen of CRUD Services for registered database in any supported Add ServiceStack Reference Language:

  • /autocrud/{Include}/{Lang}

View DB Schema Services:

  • /autocrud/schema - Default DB
  • /autocrud/schema/{Schema} - Specified DB Schema
View Source
Declaration
public IGenerateCrudServices GenerateCrudServices { get; set; }

IgnoreGeneratingServicesFor

View Source
Declaration
public List<Type> IgnoreGeneratingServicesFor { get; }

ViewerConventions

View Source
Declaration
public List<AutoQueryConvention> ViewerConventions { get; set; }

HtmlModule

View Source
Declaration
public HtmlModule HtmlModule { get; set; }

FilterAutoQueryRequestTypes

View Source
Declaration
public Func<List<Type>, List<Type>> FilterAutoQueryRequestTypes { get; set; }

FilterAutoCrudRequestTypes

View Source
Declaration
public Func<List<Type>, List<Type>> FilterAutoCrudRequestTypes { get; set; }

Fields

ImplicitConventions

View Source
Declaration
public Dictionary<string, string> ImplicitConventions

StartsWithConventions

View Source
Declaration
public Dictionary<string, QueryDbFieldAttribute> StartsWithConventions

EndsWithConventions

View Source
Declaration
public Dictionary<string, QueryDbFieldAttribute> EndsWithConventions

SqlAggregateFunctions

View Source
Declaration
public readonly HashSet<string> SqlAggregateFunctions

Methods

OnRegister(IAppHost)

View Source
Declaration
protected void OnRegister(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

AuditAutoCrudMetadataFilter(AutoCrudMetadata)

View Source
Declaration
public static void AuditAutoCrudMetadataFilter(AutoCrudMetadata meta)
Parameters
TypeName
ServiceStack.AutoCrudMetadatameta

BeforePluginsLoaded(IAppHost)

View Source
Declaration
public void BeforePluginsLoaded(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

Register(IAppHost)

View Source
Declaration
public void Register(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

AfterPluginsLoaded(IAppHost)

View Source
Declaration
public void AfterPluginsLoaded(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

RegisterQueryFilter<Request, From>(Action<SqlExpression<From>, Request, IRequest>)

View Source
Declaration
public AutoQueryFeature RegisterQueryFilter<Request, From>(Action<SqlExpression<From>, Request, IRequest> filterFn)
Returns

ServiceStack.AutoQueryFeature

Parameters
TypeName
Action<ServiceStack.OrmLite.SqlExpression<<From>>,<Request>,ServiceStack.Web.IRequest>filterFn
Type Parameters
  • Request
  • From

IncludeAggregates(QueryDbFilterContext)

View Source
Declaration
public void IncludeAggregates(QueryDbFilterContext ctx)
Parameters
TypeName
ServiceStack.QueryDbFilterContextctx

Implements