Skip to main content

IDataQuery

Assembly: ServiceStack.dll
View Source
Declaration
public interface IDataQuery

Properties

Dto

View Source
Declaration
IQueryData Dto { get; }

DynamicParams

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

Conditions

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

OrderBy

View Source
Declaration
OrderByExpression OrderBy { get; }

OnlyFields

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

Offset

View Source
Declaration
int? Offset { get; }

Rows

View Source
Declaration
int? Rows { get; }

HasConditions

View Source
Declaration
bool HasConditions { get; }

Methods

FirstMatchingField(String)

View Source
Declaration
Tuple<Type, PropertyInfo> FirstMatchingField(string name)
Returns

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

Parameters
TypeName
System.Stringname

Select(String[])

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

Join(Type, Type)

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

LeftJoin(Type, Type)

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

And(String, QueryCondition, String)

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

Or(String, QueryCondition, String)

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

AddCondition(QueryTerm, PropertyInfo, QueryCondition, Object)

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

OrderByFields(String[])

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

OrderByFieldsDescending(String[])

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

OrderByPrimaryKey()

View Source
Declaration
void OrderByPrimaryKey()

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

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