Search Results for

    Show / Hide Table of Contents

    Class MemberAccess

    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.

    Inheritance
    System.Object
    Node
    Expression
    MemberAccess
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.QueryLanguage.Syntax
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class MemberAccess : Expression

    Constructors

    MemberAccess(IEnumerable<String>, String)

    Initializes a new instance of the MemberAccess class.

    Declaration
    public MemberAccess(IEnumerable<string> segments, string alias = null)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> segments

    The segments of the MemberAccess.

    System.String alias

    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.

    Declaration
    public string Alias { get; }
    Property Value
    Type Description
    System.String

    Segments

    Gets the segments of the member access path.

    Declaration
    public ReadOnlyCollection<string> Segments { get; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ReadOnlyCollection<System.String>

    Methods

    Accept(Visitor)

    Dispatches to the correct VisitQuery(Query) call.

    Declaration
    public override Node Accept(Visitor visitor)
    Parameters
    Type Name Description
    Visitor visitor

    the visitor to dispatch.

    Returns
    Type Description
    Node

    Returns the result of the VisitQuery(Query) call.

    Overrides
    Node.Accept(Visitor)
    In This Article
    Back to top Copyright © 2020 software architects gmbh