Table of Contents

Class Query

Namespace
TimeCockpit.Data.QueryLanguage.Syntax
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
Object
Query
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

alias String

The alias of the item.

source QuerySource

The source to select from.

whereCondition Expression

The where condition.

orderBy OrderBy

The order by clause.

select Select

The select clause.

queryOptions QueryOptions

The 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

alias String

The alias of the item.

source QuerySource

The source to select from.

whereCondition Expression

The where condition.

orderBy OrderBy

The order by clause.

skipAndTake SkipAndTake

The skip and take clause.

select Select

The select clause.

queryOptions QueryOptions

The 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

OrderBy

QueryOptions

Gets the query options.

public QueryOptions QueryOptions { get; }

Property Value

QueryOptions

Select

Gets the select statement.

public Select Select { get; }

Property Value

Select

SkipAndTake

Gets the skip and take clause.

public SkipAndTake SkipAndTake { get; }

Property Value

SkipAndTake

Source

Gets the query source.

public QuerySource Source { get; }

Property Value

QuerySource

WhereCondition

Gets the where condition.

public Expression WhereCondition { get; }

Property Value

Expression

Methods

Accept(Visitor)

Dispatches to the correct VisitQuery(Query) call.

public override Node Accept(Visitor visitor)

Parameters

visitor Visitor

the 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.