InstantiationBinding 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
定義如何透過將 EF 模型屬性綁定到例如建構子參數或工廠方法的參數來建立實體實例。
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class InstantiationBinding
public abstract class InstantiationBinding
[<System.Runtime.CompilerServices.Nullable(0)>]
type InstantiationBinding = class
type InstantiationBinding = class
Public MustInherit Class InstantiationBinding
- 繼承
-
InstantiationBinding
- 衍生
- 屬性
備註
更多資訊與範例請參閱 帶有構造子的實體類型 。
建構函式
| 名稱 | Description |
|---|---|
| InstantiationBinding(IReadOnlyList<ParameterBinding>) |
建立新的 InstantiationBinding 實例。 |
屬性
| 名稱 | Description |
|---|---|
| ParameterBindings |
所使用的實例集合 ParameterBinding 。 |
| RuntimeType |
這是將從為此綁定所建立的表達式樹所建立的型別。 |
方法
| 名稱 | Description |
|---|---|
| CreateConstructorExpression(ParameterBindingInfo) |
建立一棵表達式樹,表示從給定的綁定資訊建立實體實例。 例如,這可能是 a NewExpression to call 建構子,或a MethodCallExpression to call a factory method。 |
| With(IReadOnlyList<ParameterBinding>) |
建立包含指定參數綁定的副本。 |