Share via


SqlExpressionFactory.GetTypeMappingForValue(Object) Method

Definition

Caution

Use IRelationalTypeMappingSource directly.

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

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

Parameters

value
Object

The object to get the mapping for.

Returns

The type mapping to be used.

Implements

Attributes

Applies to