Skip to main content

QueryDbFieldAttribute

Define to use a custom AutoQuery filter

Assembly: ServiceStack.Interfaces.dll​
View Source​
Declaration
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class QueryDbFieldAttribute : AttributeBase, _Attribute

Properties​

Term​

Should this filter be applied with 'AND' or 'OR' or always filtered with 'Ensure'

View Source​
Declaration
public QueryTerm Term { get; set; }

Operand​

For Simple Filters to change Operand used in default Template, e.g. For Greater Than: Operand=">"

View Source​
Declaration
public string Operand { get; set; }

Template​

Use a Custom SQL Filter, Use ServiceStack.SqlTemplate for common templates, e.g: Template=SqlTemplate.IsNotNull

View Source​
Declaration
public string Template { get; set; }

Field​

The name of the DB Field to query

View Source​
Declaration
public string Field { get; set; }

ValueFormat​

Value modifier, e.g. implement StartsWith with 'Name LIKE {Value}', ValueFormat="{0}%"

View Source​
Declaration
public string ValueFormat { get; set; }

ValueStyle​

Type of Value used in the SQL Template

View Source​
Declaration
public ValueStyle ValueStyle { get; set; }

ValueArity​

View Source​
Declaration
public int ValueArity { get; set; }

Implements​

  • System.Runtime.InteropServices._Attribute