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

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.

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.

This method is typically used to parse member access lambdas from fluent APIs.

GetMemberAccessList(LambdaExpression)

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

Only simple expressions are supported, such as those used to reference a member.

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

GetPropertyAccess(LambdaExpression)

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

This method is typically used to parse property access lambdas from fluent APIs.

GetPropertyAccessList(LambdaExpression)

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

Only simple expressions are supported, such as those used to reference a property.

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

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