Table of Contents

Class MemberAccess

Namespace
TimeCockpit.Data.QueryLanguage.Syntax
Assembly
TimeCockpit.Data.dll

Describes access to a member, e.g.: In

From X In Timesheet Where X.BeginTime < #2012-10-10# Select X

"X.BeginTime" is referred to as a MemberAccess with the segments being 'BeginTime' and alias being X. The alias may be null (and is by default null). An Alias of null means that the Member access refers to the table source of the parenting query. As of 2012-11-09, this is not possible to achieve using the grammar, as it would require not specifying an alias. Pseudocode:

From Timesheet Where BeginTime > #2012-01-01# Select 

would by a theoretical possibility for such a syntax.

public class MemberAccess : Expression
Inheritance
Object
MemberAccess
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

MemberAccess(IEnumerable<String>, String)

Initializes a new instance of the MemberAccess class.

public MemberAccess(IEnumerable<string> segments, string alias = null)

Parameters

segments IEnumerable<String>

The segments of the MemberAccess.

alias String

the alias to refer to.

Properties

Alias

Gets the alias. May be null in which case it is refering to the source of the parenting query.

public string Alias { get; }

Property Value

String

Segments

Gets the segments of the member access path.

public ReadOnlyCollection<string> Segments { get; }

Property Value

ReadOnlyCollection<String>

Methods

Accept(Visitor)

Dispatches to the correct VisitQuery(Query) call.

public override Node Accept(Visitor visitor)

Parameters

visitor Visitor

the visitor to dispatch.

Returns

Node

Returns the result of the VisitQuery(Query) call.