Table of Contents

Class EntitySource

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

AST Node representing the source of a query to a concrete entity. e.g.: In

From X In Timesheet.Include(*) Select X

TableName corresponds to "Timesheet" Include corresponds to the ".Include(*)" (IncludeAll) node.

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

Constructors

EntitySource(String, IEnumerable<EntitySourceInclude>)

Initializes a new instance of the EntitySource class.

public EntitySource(string entityName, IEnumerable<EntitySourceInclude> includes = null)

Parameters

entityName String

The name of the entity to reference.

includes IEnumerable<EntitySourceInclude>

The include statements.

Properties

EntityName

Gets the name of the table.

public string EntityName { get; }

Property Value

String

Includes

Gets the include statements for the source.

public ReadOnlyCollection<EntitySourceInclude> Includes { get; }

Property Value

ReadOnlyCollection<EntitySourceInclude>

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 value returned by the call to the VisitQuery(Query) call.