Class MemberAccess
- 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.
From Timesheet Where BeginTime > #2012-01-01# Select
would by a theoretical possibility for such a syntax.
public class MemberAccess : Expression
- Inheritance
-
ObjectMemberAccess
- 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
segmentsIEnumerable<String>The segments of the MemberAccess.
aliasStringthe 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
visitorVisitorthe visitor to dispatch.
Returns
- Node
Returns the result of the VisitQuery(Query) call.