ContextParameterBinding.BindToParameter(Expression, Expression) 方法

定义

创建表示属性值从具体化表达式到构造函数参数、工厂方法等的绑定的表达式树。

public override System.Linq.Expressions.Expression BindToParameter (System.Linq.Expressions.Expression materializationExpression, System.Linq.Expressions.Expression entityTypeExpression);
public override System.Linq.Expressions.Expression BindToParameter (System.Linq.Expressions.Expression materializationExpression, System.Linq.Expressions.Expression bindingInfoExpression);
override this.BindToParameter : System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
override this.BindToParameter : System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Public Overrides Function BindToParameter (materializationExpression As Expression, entityTypeExpression As Expression) As Expression
Public Overrides Function BindToParameter (materializationExpression As Expression, bindingInfoExpression As Expression) As Expression

参数

materializationExpression
Expression

表示具体化上下文的表达式。

entityTypeExpressionbindingInfoExpression
Expression

表示 IEntityType 常量的表达式。

返回

该表达式树。

适用于