IConventionServiceProperty.SetParameterBinding 方法

定义

ServiceParameterBinding设置此属性的 。

public void SetParameterBinding (Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding parameterBinding, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding SetParameterBinding (Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding parameterBinding, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding? SetParameterBinding (Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding? parameterBinding, bool fromDataAnnotation = false);
abstract member SetParameterBinding : Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding * bool -> unit
abstract member SetParameterBinding : Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding * bool -> Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding
Public Sub SetParameterBinding (parameterBinding As ServiceParameterBinding, Optional fromDataAnnotation As Boolean = false)
Public Function SetParameterBinding (parameterBinding As ServiceParameterBinding, Optional fromDataAnnotation As Boolean = false) As ServiceParameterBinding

参数

parameterBinding
ServiceParameterBinding

参数绑定。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

配置的绑定。

适用于