Adds a new QuerySubexpression to the collection, optionally assigning a new name to it.

Namespace:  Mindscape.LightSpeed.Querying
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public QuerySubexpression Add(
	string name,
	PathExpression path,
	string joinColumn,
	bool autoRenameDuplicates
)
Visual Basic (Declaration)
Public Function Add ( _
	name As String, _
	path As PathExpression, _
	joinColumn As String, _
	autoRenameDuplicates As Boolean _
) As QuerySubexpression

Parameters

name
Type: System..::.String
The name being assigned to the subexpression.
path
Type: Mindscape.LightSpeed.Querying..::.PathExpression
The subexpression.
joinColumn
Type: System..::.String
The attribute on which the subexpression is joined to the primary table being queried.
autoRenameDuplicates
Type: System..::.Boolean
If true, and the name is already in use in this QuerySubexpressionCollection, a new name is assigned automatically. The new name can be got from the returned value.

Return Value

A QuerySubexpression representing the new named subexpression.

See Also