Condividi tramite


RelationalTypeMappingSourceExtensions.GetMappingForValue Metodo

Definizione

Overload

GetMappingForValue(IRelationalTypeMappingSource, Object)

Ottiene il tipo di database relazionale per un oggetto specificato, che genera un'eccezione se non viene trovato alcun mapping.

GetMappingForValue(IRelationalTypeMappingSource, Object, IModel)

Ottiene il tipo di database relazionale per un oggetto specificato, che genera un'eccezione se non viene trovato alcun mapping.

GetMappingForValue(IRelationalTypeMappingSource, Object)

Ottiene il tipo di database relazionale per un oggetto specificato, che genera un'eccezione se non viene trovato alcun mapping.

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMappingForValue (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, object value);
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMappingForValue (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, object? value);
static member GetMappingForValue : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * obj -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMappingForValue (typeMappingSource As IRelationalTypeMappingSource, value As Object) As RelationalTypeMapping

Parametri

typeMappingSource
IRelationalTypeMappingSource

Origine del mapping dei tipi.

value
Object

Oggetto per cui ottenere il mapping.

Restituisce

Mapping dei tipi da utilizzare.

Si applica a

GetMappingForValue(IRelationalTypeMappingSource, Object, IModel)

Ottiene il tipo di database relazionale per un oggetto specificato, che genera un'eccezione se non viene trovato alcun mapping.

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMappingForValue (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, object? value, Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member GetMappingForValue : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * obj * Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMappingForValue (typeMappingSource As IRelationalTypeMappingSource, value As Object, model As IModel) As RelationalTypeMapping

Parametri

typeMappingSource
IRelationalTypeMappingSource

Origine del mapping dei tipi.

value
Object

Oggetto per cui ottenere il mapping.

model
IModel

Modello.

Restituisce

Mapping dei tipi da utilizzare.

Si applica a