Method RightJoin
| Improve this Doc View SourceRightJoin<T, TKey>(DbSet<T>, TKey, out T)
Constructs SQL RIGHT JOIN.
Declaration
public DbQueryBuilder RightJoin<T, TKey>(DbSet<T> dbSet, TKey left, out T _)
where T : class, IEntity<TKey>, new()
where TKey : CandidateKey
Parameters
Type | Name | Description |
---|---|---|
DbSet<T> | dbSet | The target DbSet. |
TKey | left | Left side key of the join. |
T | _ | The entity object of the target DbSet for further SQL construction. |
Returns
Type | Description |
---|---|
DbQueryBuilder | This query builder for fluent coding. |
Type Parameters
Name | Description |
---|---|
T | Entity type of the target DbSet. |
TKey | Type of the candidate key to join. |
RightJoin<T, TKey>(DbSet<T>, TKey, Func<T, TKey>, out T)
Constructs SQL RIGHT JOIN.
Declaration
public DbQueryBuilder RightJoin<T, TKey>(DbSet<T> dbSet, TKey left, Func<T, TKey> right, out T _)
where T : class, IEntity, new()
where TKey : CandidateKey
Parameters
Type | Name | Description |
---|---|---|
DbSet<T> | dbSet | The target DbSet. |
TKey | left | Left side key of the join. |
System.Func<T, TKey> | right | The delegate to get right side key of the join. |
T | _ | The entity object of the target DbSet for further SQL construction. |
Returns
Type | Description |
---|---|
DbQueryBuilder | This query builder for fluent coding. |
Type Parameters
Name | Description |
---|---|
T | Entity type of the target DbSet. |
TKey | Type of the candidate key to join. |