语言

ContextParameterBinding 构造函数

定义

重载

名称 说明
ContextParameterBinding(Type, IPropertyBase)

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

ContextParameterBinding(Type, IPropertyBase[])

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

ContextParameterBinding(Type, IPropertyBase)

Source:
ContextParameterBinding.cs
Source:
ContextParameterBinding.cs
Source:
ContextParameterBinding.cs

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[])

Source:
ContextParameterBinding.cs
Source:
ContextParameterBinding.cs
Source:
ContextParameterBinding.cs
Source:
ContextParameterBinding.cs
Source:
ContextParameterBinding.cs
Source:
ContextParameterBinding.cs

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。

适用于