Appearance
Join Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
QueryBuilder<T> Join(IJoin join, string rootAlias = null) | Adds a pre-built join definition. Call multiple times to append multiple joins. |
QueryBuilder<T> Join(JoinType joinType, TableInfo target, string alias, string logicalName, string foreignKeyColumn, IEnumerable<string> columns = null, string rootAlias = null) | Adds a foreign-key join of the requested joinType. Call multiple times to append multiple joins (order is preserved in SQL). |
QueryBuilder<T> Join(IJoin join, string rootAlias = null)
csharp
QueryBuilder<T> Join(IJoin join, string rootAlias = null)Adds a pre-built join definition. Call multiple times to append multiple joins.
QueryBuilder<T> Join(JoinType joinType, TableInfo target, string alias, string logicalName, string foreignKeyColumn, IEnumerable<string> columns = null, string rootAlias = null)
csharp
QueryBuilder<T> Join(JoinType joinType, TableInfo target, string alias, string logicalName, string foreignKeyColumn, IEnumerable<string> columns = null, string rootAlias = null)Adds a foreign-key join of the requested joinType. Call multiple times to append multiple joins (order is preserved in SQL).
Parameters
| Name | Description |
|---|---|
alias | SQL alias for the joined table. |
columns | Optional columns to project from the joined table. |
foreignKeyColumn | Foreign-key column on the root entity (property or column name). |
joinType | JOIN type to emit (Inner, LeftOuter, etc.). |
logicalName | Logical name for the join (for example, Customer). |
rootAlias | SQL alias for the root table when joins are present. Defaults to PrimaryJoinAlias so root columns keep unprefixed result names (required for view/POCO materialization). Pass a distinct alias when you want alias__column prefixes. |
target | Joined table metadata. |