Share via


RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.ThrowReadValueException<TValue> Method

Definition

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public static TValue ThrowReadValueException<TValue> (Exception exception, object? value, Type expectedType, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase? property = default);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
static member ThrowReadValueException : Exception * obj * Type * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> 'Value
Public Shared Function ThrowReadValueException(Of TValue) (exception As Exception, value As Object, expectedType As Type, Optional property As IPropertyBase = Nothing) As TValue

Type Parameters

TValue

Parameters

exception
Exception
value
Object
expectedType
Type
property
IPropertyBase

Returns

TValue
Attributes

Applies to