语言

ExpressionExtensions.CreateEFPropertyExpression 方法

定义

重载

名称 说明
CreateEFPropertyExpression(Expression, IPropertyBase, Boolean)

创建表示 Expression 给定表达式上的 EF 属性访问的树。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

CreateEFPropertyExpression(Expression, Type, Type, String, Boolean)

这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。

CreateEFPropertyExpression(Expression, IPropertyBase, Boolean)

Source:
ExpressionExtensions.cs
Source:
ExpressionExtensions.cs
Source:
ExpressionExtensions.cs
Source:
ExpressionExtensions.cs
Source:
ExpressionExtensions.cs
Source:
ExpressionExtensions.cs
Source:
ExpressionExtensions.cs

创建表示 Expression 给定表达式上的 EF 属性访问的树。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

public static System.Linq.Expressions.Expression CreateEFPropertyExpression(this System.Linq.Expressions.Expression target, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property, bool makeNullable = true);
static member CreateEFPropertyExpression : System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase * bool -> System.Linq.Expressions.Expression
<Extension()>
Public Function CreateEFPropertyExpression (target As Expression, property As IPropertyBase, Optional makeNullable As Boolean = true) As Expression

参数

target
Expression

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

property
IPropertyBase

要访问的属性。

makeNullable
Boolean

一个值,该值指示该值是否可以为 null。

返回

用于访问给定表达式上的 EF 属性的表达式。

适用于

CreateEFPropertyExpression(Expression, Type, Type, String, Boolean)

Source:
ExpressionExtensions.cs
Source:
ExpressionExtensions.cs
Source:
ExpressionExtensions.cs

这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public static System.Linq.Expressions.Expression CreateEFPropertyExpression(System.Linq.Expressions.Expression target, Type propertyDeclaringType, Type propertyType, string propertyName, bool makeNullable);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
static member CreateEFPropertyExpression : System.Linq.Expressions.Expression * Type * Type * string * bool -> System.Linq.Expressions.Expression
Public Function CreateEFPropertyExpression (target As Expression, propertyDeclaringType As Type, propertyType As Type, propertyName As String, makeNullable As Boolean) As Expression

参数

target
Expression
propertyDeclaringType
Type
propertyType
Type
propertyName
String
makeNullable
Boolean

返回

特性

适用于