語言

DependencyInjectionMethodParameterBinding 類別

定義

描述方法在 EF 內部依賴注入服務上的綁定,該服務可能同時具有或沒有關聯 ,並綁定 IServiceProperty到建構子、工廠方法或類似中的參數。

[System.Runtime.CompilerServices.Nullable(0)]
public class DependencyInjectionMethodParameterBinding : Microsoft.EntityFrameworkCore.Metadata.DependencyInjectionParameterBinding
public class DependencyInjectionMethodParameterBinding : Microsoft.EntityFrameworkCore.Metadata.DependencyInjectionParameterBinding
[<System.Runtime.CompilerServices.Nullable(0)>]
type DependencyInjectionMethodParameterBinding = class
    inherit DependencyInjectionParameterBinding
type DependencyInjectionMethodParameterBinding = class
    inherit DependencyInjectionParameterBinding
Public Class DependencyInjectionMethodParameterBinding
Inherits DependencyInjectionParameterBinding
繼承
屬性

備註

更多資訊與範例請參閱 帶有構造子的實體類型 。

建構函式

名稱 Description
DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase)

為該服務類型的給定方法建立一個新 DependencyInjectionParameterBinding 實例。

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase[])

為該服務類型的給定方法建立一個新 DependencyInjectionParameterBinding 實例。

屬性

名稱 Description
ConsumedProperties

這些由綁定處理的屬性,因此不需要以其他方式設定。

(繼承來源 ParameterBinding)
Method

綁定於相依注入服務介面上定義的方法。

ParameterType

參數 CLR 類型。

(繼承來源 ParameterBinding)
ServiceDelegate

一個委派,在實體實例上設定 CLR 服務屬性。

ServiceType

EF 內部服務 CLR 類型。

(繼承來源 ServiceParameterBinding)

方法

名稱 Description
BindToParameter(Expression, Expression)

建立一棵表達式樹,表示屬性值從物質化表達式綁定到建構子、工廠方法等參數的過程。

BindToParameter(Expression, Expression)

建立一棵表達式樹,表示屬性值從物質化表達式綁定到建構子、工廠方法等參數的過程。

(繼承來源 DependencyInjectionParameterBinding)
BindToParameter(ParameterBindingInfo)

建立一棵表達式樹,表示屬性值從物質化表達式綁定到建構子、工廠方法等參數的過程。

BindToParameter(ParameterBindingInfo)

建立一棵表達式樹,表示屬性值從物質化表達式綁定到建構子、工廠方法等參數的過程。

(繼承來源 ServiceParameterBinding)
With(IPropertyBase[])

建立包含所消耗屬性的副本。

適用於