DbExpressionBinding 类

定义

表示到关系表达式(例如 DbFilterExpressionDbProjectExpressionDbJoinExpression)的输入集。Represents an input set to relational expressions such as DbFilterExpression, DbProjectExpression, and DbJoinExpression. 此类不能被继承。This class cannot be inherited.

public ref class DbExpressionBinding sealed
public sealed class DbExpressionBinding
type DbExpressionBinding = class
Public NotInheritable Class DbExpressionBinding
继承
DbExpressionBinding

注解

此类非常类似于 foreach 具有对遍历的每个元素的绑定的遍历。This class is very similar to a foreach traversal with a binding to each element of the traversal. 此类作为帮助器类提供给对应于关系运算符的很多表达式。This class is provided as a helper class for many of the expressions that correspond to relational operators.

属性

Expression

获取或设置用于定义输入集的 DbExpressionGets or sets the DbExpression that defines the input set.

Variable

获取引用元素变量的 DbVariableReferenceExpressionGets 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.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

扩展方法

All(DbExpressionBinding, DbExpression)

创建一个新的 DbQuantifierExpression,该对象确定是否为输入集的所有元素保留给定的谓词。Creates a new DbQuantifierExpression that determines whether the given predicate holds for all elements of the input set.

Any(DbExpressionBinding, DbExpression)

创建一个新的 DbQuantifierExpression,该对象确定是否为输入集的任何元素保留给定的谓词。Creates a new DbQuantifierExpression that determines whether the given predicate holds for any element of the input set.

CrossApply(DbExpressionBinding, DbExpressionBinding)

创建一个新的 DbApplyExpression,它为每个给定输入集元素计算一次指定的 apply 表达式,并生成具有相应 input 和 apply 列的行集合。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. 不包括 apply 计算结果为空集的行。Rows for which apply evaluates to an empty set are not included.

Filter(DbExpressionBinding, DbExpression)

创建一个新的 DbFilterExpression,它使用指定的谓词筛选给定输入集中的元素。Creates a new DbFilterExpression that filters the elements in the given input set using the specified predicate.

FullOuterJoin(DbExpressionBinding, DbExpressionBinding, DbExpression)

创建一个新的 DbJoinExpression,它将 FullOuterJoin 用作 DbExpressionKind ,以此按照指定的联接条件联接左侧表达式绑定和右侧表达式绑定指定的集。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)

创建一个新的 DbJoinExpression,它将 InnerJoin 用作 DbExpressionKind ,以此按照指定的联接条件联接左侧表达式绑定和右侧表达式绑定指定的集。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)

创建一个新的 DbJoinExpression,它将 LeftOuterJoin 用作 DbExpressionKind ,以此按照指定的联接条件联接左侧表达式绑定和右侧表达式绑定指定的集。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)

创建一个新的 DbApplyExpression,它为每个给定输入集元素计算一次指定的 apply 表达式,并生成具有相应 input 和 apply 列的行集合。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. 对于 apply 计算结果为空集的行,其 apply 列的值为 nullRows for which apply evaluates to an empty set have an apply column value of null.

Project(DbExpressionBinding, DbExpression)

创建一个新的 DbProjectExpression,它对给定的输入集投影指定的表达式。Creates a new DbProjectExpression that projects the specified expression over the given input set.

Skip(DbExpressionBinding, IEnumerable<DbSortClause>, DbExpression)

创建一个新的 DbSkipExpression,它在跳过指定数目的元素之前,按照指定的排序规范对给定的输入集进行排序。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>)

创建一个新的 DbSortExpression,它按照指定的排序规范对给定的输入集进行排序。Creates a new DbSortExpression that sorts the given input set by the specified sort specifications.

适用于