Share via


EdmToClrEvaluator.EvaluateToClrValue Method

Definition

Overloads

EvaluateToClrValue<T>(IEdmExpression)

Evaluates an expression with no value context.

EvaluateToClrValue<T>(IEdmExpression, IEdmStructuredValue)

Evaluates an expression in the context of a value.

EvaluateToClrValue<T>(IEdmExpression, IEdmStructuredValue, IEdmTypeReference)

Evaluates an expression in the context of a value and a target type.

EvaluateToClrValue<T>(IEdmExpression)

Evaluates an expression with no value context.

public T EvaluateToClrValue<T> (Microsoft.OData.Edm.IEdmExpression expression);
member this.EvaluateToClrValue : Microsoft.OData.Edm.IEdmExpression -> 'T
Public Function EvaluateToClrValue(Of T) (expression As IEdmExpression) As T

Type Parameters

T

The CLR type of the value to be returned.

Parameters

expression
IEdmExpression

Expression to evaluate. The expression must not contain paths, because no context for evaluating a path is supplied.

Returns

T

The value that results from evaluating the expression in the context of the supplied value.

Applies to

EvaluateToClrValue<T>(IEdmExpression, IEdmStructuredValue)

Evaluates an expression in the context of a value.

public T EvaluateToClrValue<T> (Microsoft.OData.Edm.IEdmExpression expression, Microsoft.OData.Edm.Vocabularies.IEdmStructuredValue context);
member this.EvaluateToClrValue : Microsoft.OData.Edm.IEdmExpression * Microsoft.OData.Edm.Vocabularies.IEdmStructuredValue -> 'T
Public Function EvaluateToClrValue(Of T) (expression As IEdmExpression, context As IEdmStructuredValue) As T

Type Parameters

T

The CLR type of the value to be returned.

Parameters

expression
IEdmExpression

Expression to evaluate.

context
IEdmStructuredValue

Value to use as context in evaluating the expression.

Returns

T

The value that results from evaluating the expression in the context of the supplied value.

Applies to

EvaluateToClrValue<T>(IEdmExpression, IEdmStructuredValue, IEdmTypeReference)

Evaluates an expression in the context of a value and a target type.

public T EvaluateToClrValue<T> (Microsoft.OData.Edm.IEdmExpression expression, Microsoft.OData.Edm.Vocabularies.IEdmStructuredValue context, Microsoft.OData.Edm.IEdmTypeReference targetType);
member this.EvaluateToClrValue : Microsoft.OData.Edm.IEdmExpression * Microsoft.OData.Edm.Vocabularies.IEdmStructuredValue * Microsoft.OData.Edm.IEdmTypeReference -> 'T
Public Function EvaluateToClrValue(Of T) (expression As IEdmExpression, context As IEdmStructuredValue, targetType As IEdmTypeReference) As T

Type Parameters

T

The CLR type of the value to be returned.

Parameters

expression
IEdmExpression

Expression to evaluate.

context
IEdmStructuredValue

Value to use as context in evaluating the expression.

targetType
IEdmTypeReference

Type to which the result value is expected to conform.

Returns

T

The value that results from evaluating the expression in the context of the supplied value, asserted to be of the targetType.

Applies to