Show / Hide Table of Contents

Method LeftJoin

| Improve this Doc View Source

LeftJoin<T, TKey>(DbSet<T>, TKey, out T)

Constructs SQL LEFT JOIN.

Declaration
public DbAggregateQueryBuilder LeftJoin<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
DbAggregateQueryBuilder

This aggregate query builder for fluent coding.

Type Parameters
Name Description
T

Entity type of the target DbSet.

TKey

Type of the candidate key to join.

| Improve this Doc View Source

LeftJoin<T, TKey>(DbSet<T>, TKey, Func<T, TKey>, out T)

Constructs SQL LEFT JOIN.

Declaration
public DbAggregateQueryBuilder LeftJoin<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
DbAggregateQueryBuilder

This aggregate query builder for fluent coding.

Type Parameters
Name Description
T

Entity type of the target DbSet.

TKey

Type of the candidate key to join.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest