语言

ExpressionExtensions.CreateKeyValuesExpression 方法

定义

创建表示 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

将生成读取操作的根表达式。

properties
IReadOnlyList<IProperty>

用于生成键值的属性列表。

makeNullable
Boolean

一个值,该值指示键值是否应为 null。

返回

用于读取键值的表达式。

适用于