Skip to content

Join Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
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 ​

NameDescription
aliasSQL alias for the joined table.
columnsOptional columns to project from the joined table.
foreignKeyColumnForeign-key column on the root entity (property or column name).
joinTypeJOIN type to emit (Inner, LeftOuter, etc.).
logicalNameLogical name for the join (for example, Customer).
rootAliasSQL 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.
targetJoined table metadata.