DependencyInjectionParameterBinding 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
描述從 EF 內部依賴注入服務(可能同時具有或沒有關聯 IServiceProperty)綁定到建構子、工廠方法或類似參數的過程。
[System.Runtime.CompilerServices.Nullable(0)]
public class DependencyInjectionParameterBinding : Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding
public class DependencyInjectionParameterBinding : Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding
[<System.Runtime.CompilerServices.Nullable(0)>]
type DependencyInjectionParameterBinding = class
inherit ServiceParameterBinding
type DependencyInjectionParameterBinding = class
inherit ServiceParameterBinding
Public Class DependencyInjectionParameterBinding
Inherits ServiceParameterBinding
- 繼承
- 衍生
- 屬性
備註
更多資訊與範例請參閱 帶有構造子的實體類型 。
建構函式
| 名稱 | Description |
|---|---|
| DependencyInjectionParameterBinding(Type, Type, IPropertyBase) |
為該服務類型建立一個新的 DependencyInjectionParameterBinding 實例。 |
| DependencyInjectionParameterBinding(Type, Type, IPropertyBase[]) |
為該服務類型建立一個新的 DependencyInjectionParameterBinding 實例。 |
屬性
| 名稱 | Description |
|---|---|
| ConsumedProperties |
這些由綁定處理的屬性,因此不需要以其他方式設定。 (繼承來源 ParameterBinding) |
| ParameterType |
參數 CLR 類型。 (繼承來源 ParameterBinding) |
| ServiceDelegate |
一個委派,在實體實例上設定 CLR 服務屬性。 |
| ServiceDelegate |
一個委派,在實體實例上設定 CLR 服務屬性。 (繼承來源 ServiceParameterBinding) |
| ServiceType |
EF 內部服務 CLR 類型。 (繼承來源 ServiceParameterBinding) |
方法
| 名稱 | Description |
|---|---|
| BindToParameter(Expression, Expression) |
建立一棵表達式樹,表示屬性值從物質化表達式綁定到建構子、工廠方法等參數的過程。 |
| BindToParameter(ParameterBindingInfo) |
建立一棵表達式樹,表示屬性值從物質化表達式綁定到建構子、工廠方法等參數的過程。 (繼承來源 ServiceParameterBinding) |
| With(IPropertyBase[]) |
建立包含所消耗屬性的副本。 |