Method AddJoinItem
- Namespace
- YndigoBlue.Velocity.Model
- Assembly
- YndigoBlue.Velocity.dll
AddJoinItem(IFromItem, string, string, IFromItem, string, string, JoinType, JoinOperatorType)
Adds a column-based join item to this Join, with explicit aliases and column names for each side.
public void AddJoinItem(IFromItem parent, string parentAlias, string parentColumnName, IFromItem fromItem, string alias, string columnName, JoinType joinType = JoinType.Inner, JoinOperatorType joinOperatorType = JoinOperatorType.Equals)
Parameters
parentIFromItemThe parent (left-side) table or join.
parentAliasstringAlias for the parent item.
parentColumnNamestringColumn name on the parent side.
fromItemIFromItemThe child (right-side) table or join.
aliasstringAlias for the child item.
columnNamestringColumn name on the child side.
joinTypeJoinTypeThe type of join to perform.
joinOperatorTypeJoinOperatorTypeThe comparison operator for the ON condition.
AddJoinItem(IFromItem, string, ISelectItem, IFromItem, string, ISelectItem, JoinType, JoinOperatorType)
Adds a column-based join item to this Join, using explicit ISelectItem references for each side of the condition.
public void AddJoinItem(IFromItem parent, string parentAlias, ISelectItem parentColumn, IFromItem fromItem, string alias, ISelectItem column, JoinType joinType = JoinType.Inner, JoinOperatorType joinOperatorType = JoinOperatorType.Equals)
Parameters
parentIFromItemThe parent (left-side) table or join.
parentAliasstringAlias for the parent item.
parentColumnISelectItemThe column reference on the parent side.
fromItemIFromItemThe child (right-side) table or join.
aliasstringAlias for the child item.
columnISelectItemThe column reference on the child side.
joinTypeJoinTypeThe type of join to perform.
joinOperatorTypeJoinOperatorTypeThe comparison operator for the ON condition.
AddJoinItem(IFromItem, string, IFromItem, string, JoinType, Function)
Adds a function-based join item to this Join, where a predicate function forms the ON condition.
public void AddJoinItem(IFromItem parent, string parentAlias, IFromItem fromItem, string alias, JoinType joinType, Function function)
Parameters
parentIFromItemThe parent (left-side) table or join.
parentAliasstringAlias for the parent item.
fromItemIFromItemThe child (right-side) table or join.
aliasstringAlias for the child item.
joinTypeJoinTypeThe type of join to perform.
functionFunctionThe predicate function that forms the ON condition.