Search Results for

    Show / Hide Table of Contents

    Class EntitySource

    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.

    Inheritance
    System.Object
    Node
    QuerySource
    EntitySource
    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 EntitySource : QuerySource

    Constructors

    EntitySource(String, IEnumerable<EntitySourceInclude>)

    Initializes a new instance of the EntitySource class.

    Declaration
    public EntitySource(string entityName, IEnumerable<EntitySourceInclude> includes = null)
    Parameters
    Type Name Description
    System.String entityName

    The name of the entity to reference.

    System.Collections.Generic.IEnumerable<EntitySourceInclude> includes

    The include statements.

    Properties

    EntityName

    Gets the name of the table.

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

    Includes

    Gets the include statements for the source.

    Declaration
    public ReadOnlyCollection<EntitySourceInclude> Includes { get; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ReadOnlyCollection<EntitySourceInclude>

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

    Overrides
    Node.Accept(Visitor)
    In This Article
    • Constructors
      • EntitySource(String, IEnumerable<EntitySourceInclude>)
    • Properties
      • EntityName
      • Includes
    • Methods
      • Accept(Visitor)
    Back to top Copyright © 2020 software architects gmbh