Share 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.

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