Class SelectNewWith
- 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
-
ObjectSelectNewWith
- 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
membersIEnumerable<MemberDeclaration>The members of the new type defined by select new with.
entityNameStringThe name of the entity that describes the structure of the new entity.
topCountInt32The 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
visitorVisitorThe visitor to visit.
Returns
- Node
Returns the value returned from the VisitQuery(Query) call.