Class Query
- Assembly
- TimeCockpit.Data.dll
represents a query: e.g.: In
From X In SomeTable Where X.BeginTime > #2012-10-10 12:00:00# Select X With VersionInfoOnly
Alias will map to "X", Source will map to "SomeTable", Where will map to "X.BeginTime > #2012-10-10 12:00:00#", Select will map to "X", QueryOptions will have VersionInfoOnly set to true.
public class Query : Expression
- Inheritance
-
ObjectQuery
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
Query(String, QuerySource, Expression, OrderBy, Select, QueryOptions)
Initializes a new instance of the Query class.
public Query(string alias, QuerySource source, Expression whereCondition, OrderBy orderBy, Select select, QueryOptions queryOptions)
Parameters
aliasStringThe alias of the item.
sourceQuerySourceThe source to select from.
whereConditionExpressionThe where condition.
orderByOrderByThe order by clause.
selectSelectThe select clause.
queryOptionsQueryOptionsThe query options.
Query(String, QuerySource, Expression, OrderBy, SkipAndTake, Select, QueryOptions)
Initializes a new instance of the Query class.
public Query(string alias, QuerySource source, Expression whereCondition, OrderBy orderBy, SkipAndTake skipAndTake, Select select, QueryOptions queryOptions)
Parameters
aliasStringThe alias of the item.
sourceQuerySourceThe source to select from.
whereConditionExpressionThe where condition.
orderByOrderByThe order by clause.
skipAndTakeSkipAndTakeThe skip and take clause.
selectSelectThe select clause.
queryOptionsQueryOptionsThe query options.
Properties
Alias
Gets the alias of the query.
public string Alias { get; }
Property Value
- String
OrderBy
Gets the order by clause.
public OrderBy OrderBy { get; }
Property Value
QueryOptions
Gets the query options.
public QueryOptions QueryOptions { get; }
Property Value
Select
Gets the select statement.
public Select Select { get; }
Property Value
SkipAndTake
Gets the skip and take clause.
public SkipAndTake SkipAndTake { get; }
Property Value
Source
Gets the query source.
public QuerySource Source { get; }
Property Value
WhereCondition
Gets the where condition.
public Expression WhereCondition { get; }
Property Value
Methods
Accept(Visitor)
Dispatches to the correct VisitQuery(Query) call.
public override Node Accept(Visitor visitor)
Parameters
visitorVisitorthe visitor to dispatch to.
Returns
- Node
Returns the value returned by the call to VisitQuery(Query).
ToTCQL()
Converts the query to TCQL text.
public string ToTCQL()
Returns
- String
Returns the TCQL textual represenation of the query.