Share via


ISqlExpressionFactory.GetTypeMappingForValue(Object) Method

Definition

Caution

Use IRelationalTypeMappingSource directly.

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

public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetTypeMappingForValue (object value);
[System.Obsolete("Use IRelationalTypeMappingSource directly.")]
public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetTypeMappingForValue (object value);
[System.Obsolete("Use IRelationalTypeMappingSource directly.")]
public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetTypeMappingForValue (object? value);
abstract member GetTypeMappingForValue : obj -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
[<System.Obsolete("Use IRelationalTypeMappingSource directly.")>]
abstract member GetTypeMappingForValue : obj -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function GetTypeMappingForValue (value As Object) As RelationalTypeMapping

Parameters

value
Object

The object to get the mapping for.

Returns

The type mapping to be used.

Attributes

Applies to