Skip to content

EntitySqlQueryExtensions.InnerJoin<TFields> method

Adds an INNER JOIN using fields aliased for this query and builds its ON criteria from those fields.

public static SqlQuery InnerJoin<TFields>(this SqlQuery query, TFields fields, 
    Func<TFields, ICriteria> onCriteria, out TFields aliased)
    where TFields : RowFieldsBase
parameter description
TFields The row fields type.
query The query.
fields The fields whose table is joined.
onCriteria Creates the ON criteria from the fields with their query alias.
aliased Receives the fields instance with the alias used by the join.

Return Value

The query itself.

See Also