DependencyInjectionParameterBinding.BindToParameter 方法

定义

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

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 常量的表达式。

返回

该表达式树。

适用于