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.
would by a theoretical possibility for such a syntax.
From Timesheet Where BeginTime > #2012-01-01# Select
Inherited Members
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. |