Freigeben über


RelationalTypeMappingSourceExtensions.GetMappingForValue Methode

Definition

Überlädt

GetMappingForValue(IRelationalTypeMappingSource, Object)

Ruft den relationalen Datenbanktyp für ein bestimmtes Objekt ab und löst aus, wenn keine Zuordnung gefunden wird.

GetMappingForValue(IRelationalTypeMappingSource, Object, IModel)

Ruft den relationalen Datenbanktyp für ein bestimmtes Objekt ab und löst aus, wenn keine Zuordnung gefunden wird.

GetMappingForValue(IRelationalTypeMappingSource, Object)

Ruft den relationalen Datenbanktyp für ein bestimmtes Objekt ab und löst aus, wenn keine Zuordnung gefunden wird.

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

Parameter

typeMappingSource
IRelationalTypeMappingSource

Die Typzuordnungsquelle.

value
Object

Das Objekt, für das die Zuordnung abgerufen werden soll.

Gibt zurück

Die zu verwendende Typzuordnung.

Gilt für:

GetMappingForValue(IRelationalTypeMappingSource, Object, IModel)

Ruft den relationalen Datenbanktyp für ein bestimmtes Objekt ab und löst aus, wenn keine Zuordnung gefunden wird.

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

Parameter

typeMappingSource
IRelationalTypeMappingSource

Die Typzuordnungsquelle.

value
Object

Das Objekt, für das die Zuordnung abgerufen werden soll.

model
IModel

Das Modell.

Gibt zurück

Die zu verwendende Typzuordnung.

Gilt für: