RelationalTypeMapperExtensions.GetMappingForValue Method

Definition

Caution

Use IRelationalTypeMappingSource instead.

Gets the relational database type for a given object, throwing if no mapping is found.

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMappingForValue (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, object value);
[System.Obsolete("Use IRelationalTypeMappingSource instead.")]
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMappingForValue (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, object value);
static member GetMappingForValue : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * obj -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
[<System.Obsolete("Use IRelationalTypeMappingSource instead.")>]
static member GetMappingForValue : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * obj -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMappingForValue (typeMapper As IRelationalTypeMapper, value As Object) As RelationalTypeMapping

Parameters

typeMapper
IRelationalTypeMapper

The type mapper.

value
Object

The object to get the mapping for.

Returns

The type mapping to be used.

Attributes

Applies to