Class EntitySourceIncludeConditional
AST Node representing a conditional include statement. e.g.: In
From X In Project.Include(P, Timesheet, P.BeginTime > 10) Select X
the node corresponds to the ".Include(P, Timesheet, P.BeginTime > 10)" part. BackReferenceAliasName corresponds to the alias given to the back reference item ("P"), BackReferenceName corresponds to "Timesheet" and Condition corresponds to "P.BeginTime > 10" />
Inherited Members
Namespace: TimeCockpit.Data.QueryLanguage.Syntax
Assembly: TimeCockpit.Data.dll
Syntax
public class EntitySourceIncludeConditional : EntitySourceInclude
Constructors
EntitySourceIncludeConditional(String, String, Expression, String)
Initializes a new instance of the EntitySourceIncludeConditional class.
Declaration
public EntitySourceIncludeConditional(string backReferenceAliasName, string backReferenceName, Expression condition, string joinType = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | backReferenceAliasName | The name of the back reference alias. |
| System.String | backReferenceName | The name of the back reference being included. |
| Expression | condition | The include condition. |
| System.String | joinType | The type of the join. |
Properties
BackReferenceAliasName
Gets the name of the BackReference Alias.
Declaration
public string BackReferenceAliasName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
BackReferenceName
Gets the name of the BackReference the alias refers to.
Declaration
public string BackReferenceName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Condition
Gets the expression of the condition for the back reference elements.
Declaration
public Expression Condition { get; }
Property Value
| Type | Description |
|---|---|
| Expression |
JoinType
Gets the type of the join.
Declaration
public string JoinType { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
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 VisitQuery(Query). |