Share via


ExpressionExtensions.CreateEFPropertyExpression Method

Definition

Creates an Expression tree representing EF property access on given expression.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

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

Parameters

target
Expression

The expression that will be root for generated read operation.

property
IPropertyBase

The property to access.

makeNullable
Boolean

A value indicating if the value can be nullable.

Returns

An expression to access EF property on given expression.

Applies to