Share via


DbExpressionBinding Class

Definition

Describes a binding for an expression. Conceptually similar to a foreach loop in C#. The DbExpression property defines the collection being iterated over, while the Var property provides a means to reference the current element of the collection during the iteration. DbExpressionBinding is used to describe the set arguments to relational expressions such as DbFilterExpression, DbProjectExpression and DbJoinExpression.

public sealed class DbExpressionBinding
type DbExpressionBinding = class
Public NotInheritable Class DbExpressionBinding
Inheritance
DbExpressionBinding

Properties

Expression

Gets the DbExpression that defines the input set.

Variable

Gets the DbVariableReferenceExpression that references the element variable.

VariableName

Gets the name assigned to the element variable.

VariableType

Gets the type metadata of the element variable.

Extension Methods

All(DbExpressionBinding, DbExpression)

Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.

Any(DbExpressionBinding, DbExpression)

Creates a new DbQuantifierExpression that determines whether the given predicate holds for any element of the input set.

CrossApply(DbExpressionBinding, DbExpressionBinding)

Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set are not included.

Filter(DbExpressionBinding, DbExpression)

Creates a new DbFilterExpression that filters the elements in the given input set using the specified predicate.

FullOuterJoin(DbExpressionBinding, DbExpressionBinding, DbExpression)

Creates a new DbJoinExpression that joins the sets specified by the left and right expression bindings, on the specified join condition, using FullOuterJoin as the DbExpressionKind .

InnerJoin(DbExpressionBinding, DbExpressionBinding, DbExpression)

Creates a new DbJoinExpression that joins the sets specified by the left and right expression bindings, on the specified join condition, using InnerJoin as the DbExpressionKind .

LeftOuterJoin(DbExpressionBinding, DbExpressionBinding, DbExpression)

Creates a new DbJoinExpression that joins the sets specified by the left and right expression bindings, on the specified join condition, using LeftOuterJoin as the DbExpressionKind .

OuterApply(DbExpressionBinding, DbExpressionBinding)

Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set have an apply column value of null.

Project(DbExpressionBinding, DbExpression)

Creates a new DbProjectExpression that projects the specified expression over the given input set.

Skip(DbExpressionBinding, IEnumerable<DbSortClause>, DbExpression)

Creates a new DbSkipExpression that sorts the given input set by the given sort specifications before skipping the specified number of elements.

Sort(DbExpressionBinding, IEnumerable<DbSortClause>)

Creates a new DbSortExpression that sorts the given input set by the specified sort specifications.

Applies to

See also