Skip to main content

DataQuery<T>

Assembly: ServiceStack.dll
View Source
Declaration
public class DataQuery<T> : IDataQuery

Properties

Dto

View Source
Declaration
public IQueryData Dto { get; }

DynamicParams

View Source
Declaration
public Dictionary<string, string> DynamicParams { get; }

Conditions

View Source
Declaration
public List<DataConditionExpression> Conditions { get; set; }

OrderBy

View Source
Declaration
public OrderByExpression OrderBy { get; set; }

OnlyFields

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

Offset

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

Rows

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

HasConditions

View Source
Declaration
public virtual bool HasConditions { get; }

Methods

Limit(Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public virtual void Limit(int? skip, int? take)
Parameters
TypeName
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

Take(Int32)

View Source
Declaration
public void Take(int take)
Parameters
TypeName
System.Int32take

Select(String[])

View Source
Declaration
public virtual void Select(string[] fields)
Parameters
TypeName
System.String[]fields

FirstMatchingField(String)

View Source
Declaration
public virtual Tuple<Type, PropertyInfo> FirstMatchingField(string field)
Returns

System.Tuple<System.Type,System.Reflection.PropertyInfo>

Parameters
TypeName
System.Stringfield

OrderByFields(String[])

View Source
Declaration
public virtual void OrderByFields(params string[] fieldNames)
Parameters
TypeName
System.String[]fieldNames

OrderByFieldsDescending(String[])

View Source
Declaration
public virtual void OrderByFieldsDescending(params string[] fieldNames)
Parameters
TypeName
System.String[]fieldNames

OrderByPrimaryKey()

View Source
Declaration
public virtual void OrderByPrimaryKey()

Join(Type, Type)

View Source
Declaration
public virtual void Join(Type joinType, Type type)
Parameters
TypeName
System.TypejoinType
System.Typetype

LeftJoin(Type, Type)

View Source
Declaration
public virtual void LeftJoin(Type joinType, Type type)
Parameters
TypeName
System.TypejoinType
System.Typetype

AddCondition(QueryTerm, PropertyInfo, QueryCondition, Object)

View Source
Declaration
public virtual void AddCondition(QueryTerm term, PropertyInfo field, QueryCondition condition, object value)
Parameters
TypeName
ServiceStack.QueryTermterm
System.Reflection.PropertyInfofield
ServiceStack.QueryConditioncondition
System.Objectvalue

And(String, QueryCondition, String)

View Source
Declaration
public virtual void And(string field, QueryCondition condition, string value)
Parameters
TypeName
System.Stringfield
ServiceStack.QueryConditioncondition
System.Stringvalue

Or(String, QueryCondition, String)

View Source
Declaration
public virtual void Or(string field, QueryCondition condition, string value)
Parameters
TypeName
System.Stringfield
ServiceStack.QueryConditioncondition
System.Stringvalue

Implements