Class SelectNewWith
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.
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 SelectNewWith : Select
Constructors
SelectNewWith(IEnumerable<MemberDeclaration>, String, Int32)
Initializes a new instance of the SelectNewWith class.
Declaration
public SelectNewWith(IEnumerable<MemberDeclaration> members, string entityName = null, int topCount = -1)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<MemberDeclaration> | members | The members of the new type defined by select new with. |
System.String | entityName | The name of the entity that describes the structure of the new entity. |
System.Int32 | topCount | The topCount value. |
Properties
EntityName
Gets the name of the entity to create.
Declaration
public string EntityName { get; }
Property Value
Type | Description |
---|---|
System.String |
Members
Gets the members of the select new with statement.
Declaration
public ReadOnlyCollection<MemberDeclaration> Members { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<MemberDeclaration> |
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 visit. |
Returns
Type | Description |
---|---|
Node | Returns the value returned from the VisitQuery(Query) call. |