Partilhar via


ExpressionExtensions Class

Definition

Extension methods for Expression types.

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

public static class ExpressionExtensions
type ExpressionExtensions = class
Public Module ExpressionExtensions
Inheritance
ExpressionExtensions

Remarks

See Implementation of database providers and extensions for more information and examples.

Fields

ValueBufferTryReadValueMethod

MethodInfo which is used to generate an Expression tree representing reading a value from a ValueBuffer

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

Methods

Assign(MemberExpression, Expression)

Creates a BinaryExpression that represents an assignment operation.

CreateEFPropertyExpression(Expression, IPropertyBase, Boolean)

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.

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

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

CreateEqualsExpression(Expression, Expression, Boolean)

Creates an Expression tree representing equality comparison between 2 expressions using Equals(Object, Object) method.

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

CreateKeyValuesExpression(Expression, IReadOnlyList<IProperty>, Boolean)

Creates an Expression tree representing reading of a key values on given expression.

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

CreateValueBufferReadValueExpression(Expression, Type, Int32, IPropertyBase)

Creates an Expression tree representing reading a value from a ValueBuffer

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

GetMemberAccess(LambdaExpression)

Gets the MemberInfo represented by a simple member-access expression.

GetMemberAccessList(LambdaExpression)

Returns a list of MemberInfo extracted from the given simple LambdaExpression.

GetPropertyAccess(LambdaExpression)

Gets the PropertyInfo represented by a simple property-access expression.

GetPropertyAccessList(LambdaExpression)

Returns a list of PropertyInfo extracted from the given simple LambdaExpression.

MakeMemberAccess(Expression, MemberInfo)

Creates a MemberExpression that represents accessing either a field or a property.

Print(Expression, Nullable<Int32>)

Creates a printable string representation of the given expression.

RemoveConvert(Expression)
Obsolete.

Returns a new expression with any see Convert or ConvertChecked nodes removed from the head of the given expression tree/

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

TryGetEFPropertyArguments(MethodCallExpression, Expression, String)

If the given a method-call expression represents a call to Property<TProperty>(Object, String), then this method extracts the entity expression and property name.

TryGetIndexerArguments(MethodCallExpression, IModel, Expression, String)

If the given a method-call expression represents a call to indexer on the entity, then this method extracts the entity expression and property name.

Applies to