ContextParameterBinding 构造函数

定义

重载

ContextParameterBinding(Type, IPropertyBase)

为给定服务类型创建一个新 ServiceParameterBinding 实例。

ContextParameterBinding(Type, IPropertyBase[])

为给定服务类型创建一个新 ServiceParameterBinding 实例。

ContextParameterBinding(Type, IPropertyBase)

为给定服务类型创建一个新 ServiceParameterBinding 实例。

public ContextParameterBinding (Type contextType, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase serviceProperty = default);
new Microsoft.EntityFrameworkCore.Metadata.ContextParameterBinding : Type * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Microsoft.EntityFrameworkCore.Metadata.ContextParameterBinding
Public Sub New (contextType As Type, Optional serviceProperty As IPropertyBase = Nothing)

参数

contextType
Type

DbContext CLR 类型。

serviceProperty
IPropertyBase

关联的 IServiceProperty或 null。

适用于

ContextParameterBinding(Type, IPropertyBase[])

为给定服务类型创建一个新 ServiceParameterBinding 实例。

public ContextParameterBinding (Type contextType, params Microsoft.EntityFrameworkCore.Metadata.IPropertyBase[]? serviceProperties);
new Microsoft.EntityFrameworkCore.Metadata.ContextParameterBinding : Type * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase[] -> Microsoft.EntityFrameworkCore.Metadata.ContextParameterBinding
Public Sub New (contextType As Type, ParamArray serviceProperties As IPropertyBase())

参数

contextType
Type

DbContext CLR 类型。

serviceProperties
IPropertyBase[]

关联的 IServiceProperty 对象或 null

适用于