Sdílet prostřednictvím


RelationalTypeMapperExtensions.GetMappingForValue Metoda

Definice

Upozornění

Use IRelationalTypeMappingSource instead.

Získá typ relační databáze pro daný objekt, vyvolá, pokud není nalezeno žádné mapování.

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

Parametry

typeMapper
IRelationalTypeMapper

Mapovač typů.

value
Object

Objekt, pro který chcete získat mapování.

Návraty

Mapování typů, které se má použít.

Atributy

Platí pro