EntityShaperExpression.CreateUnableToDiscriminateExceptionExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an expression to throw an exception when unable to determine entity type to materialize based on discriminator value.
protected static System.Linq.Expressions.Expression CreateUnableToDiscriminateExceptionExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Linq.Expressions.Expression discriminatorValue);
static member CreateUnableToDiscriminateExceptionExpression : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Protected Shared Function CreateUnableToDiscriminateExceptionExpression (entityType As IEntityType, discriminatorValue As Expression) As Expression
Parameters
- entityType
- IEntityType
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework