Table of Contents

Constructor Union

Namespace
YndigoBlue.Velocity.Model
Assembly
YndigoBlue.Velocity.dll

Union(Query, bool)

Creates a new UNION operation.

public Union(Query query, bool unionAll)

Parameters

query Query

The query to union with the base query.

unionAll bool

If true, uses UNION ALL (keeps duplicates). If false, uses UNION (removes duplicates).

Remarks

UNION ALL is generally faster because it doesn't need to check for and remove duplicates. Use UNION ALL when you know there are no duplicates or when duplicates are acceptable.