Share via


StructuralTypeShaperExpression.CreateUnableToDiscriminateExceptionExpression Method

Definition

Creates an expression to throw an exception when we're unable to determine the structural type to materialize based on discriminator value.

protected static System.Linq.Expressions.Expression CreateUnableToDiscriminateExceptionExpression (Microsoft.EntityFrameworkCore.Metadata.ITypeBase type, System.Linq.Expressions.Expression discriminatorValue);
static member CreateUnableToDiscriminateExceptionExpression : Microsoft.EntityFrameworkCore.Metadata.ITypeBase * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Protected Shared Function CreateUnableToDiscriminateExceptionExpression (type As ITypeBase, discriminatorValue As Expression) As Expression

Parameters

type
ITypeBase

The entity type for which materialization was requested.

discriminatorValue
Expression

The expression containing value of discriminator.

Returns

An expression of Func<T,TResult> representing materilization condition for the entity type.

Applies to