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