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
Type | Name |
---|---|
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
Take(Int32)
View Source
Declaration
public void Take(int take)
Parameters
Type | Name |
---|---|
System.Int32 | take |
Select(String[])
View Source
Declaration
public virtual void Select(string[] fields)
Parameters
Type | Name |
---|---|
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
Type | Name |
---|---|
System.String | field |
OrderByFields(String[])
View Source
Declaration
public virtual void OrderByFields(params string[] fieldNames)
Parameters
Type | Name |
---|---|
System.String[] | fieldNames |
OrderByFieldsDescending(String[])
View Source
Declaration
public virtual void OrderByFieldsDescending(params string[] fieldNames)
Parameters
Type | Name |
---|---|
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
Type | Name |
---|---|
System.Type | joinType |
System.Type | type |
LeftJoin(Type, Type)
View Source
Declaration
public virtual void LeftJoin(Type joinType, Type type)
Parameters
Type | Name |
---|---|
System.Type | joinType |
System.Type | type |
AddCondition(QueryTerm, PropertyInfo, QueryCondition, Object)
View Source
Declaration
public virtual void AddCondition(QueryTerm term, PropertyInfo field, QueryCondition condition, object value)
Parameters
Type | Name |
---|---|
ServiceStack.QueryTerm | term |
System.Reflection.PropertyInfo | field |
ServiceStack.QueryCondition | condition |
System.Object | value |
And(String, QueryCondition, String)
View Source
Declaration
public virtual void And(string field, QueryCondition condition, string value)
Parameters
Type | Name |
---|---|
System.String | field |
ServiceStack.QueryCondition | condition |
System.String | value |
Or(String, QueryCondition, String)
View Source
Declaration
public virtual void Or(string field, QueryCondition condition, string value)
Parameters
Type | Name |
---|---|
System.String | field |
ServiceStack.QueryCondition | condition |
System.String | value |