Table of Contents

Class SelectNewWith

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

AST Node representing a select new with statement. e.g. In

From X In Timesheet Select New With { .Duration = X.EndTime - X.BeginTime }

this node represents the "Select New With { .Duration = X.EndTime - X.BeginTime }" part.

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

Constructors

SelectNewWith(IEnumerable<MemberDeclaration>, String, Int32)

Initializes a new instance of the SelectNewWith class.

public SelectNewWith(IEnumerable<MemberDeclaration> members, string entityName = null, int topCount = -1)

Parameters

members IEnumerable<MemberDeclaration>

The members of the new type defined by select new with.

entityName String

The name of the entity that describes the structure of the new entity.

topCount Int32

The topCount value.

Properties

EntityName

Gets the name of the entity to create.

public string EntityName { get; }

Property Value

String

Members

Gets the members of the select new with statement.

public ReadOnlyCollection<MemberDeclaration> Members { get; }

Property Value

ReadOnlyCollection<MemberDeclaration>

Methods

Accept(Visitor)

Dispatches to the correct VisitQuery(Query) call.

public override Node Accept(Visitor visitor)

Parameters

visitor Visitor

The visitor to visit.

Returns

Node

Returns the value returned from the VisitQuery(Query) call.