ExpressionExtensions.CreateKeyValuesExpression 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 Expression 一棵樹狀結構,表示對特定表達式鍵值的讀取。
此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。
public static System.Linq.Expressions.Expression CreateKeyValuesExpression(this System.Linq.Expressions.Expression target, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, bool makeNullable = false);
static member CreateKeyValuesExpression : System.Linq.Expressions.Expression * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * bool -> System.Linq.Expressions.Expression
<Extension()>
Public Function CreateKeyValuesExpression (target As Expression, properties As IReadOnlyList(Of IProperty), Optional makeNullable As Boolean = false) As Expression
參數
- target
- Expression
生成讀取操作的 root 運算式。
- properties
- IReadOnlyList<IProperty>
用來產生鍵值的屬性清單。
- makeNullable
- Boolean
一個表示鍵值是否應該被讀取為 null 的值。
傳回
一個用來讀取關鍵值的表達式。