Sdílet prostřednictvím


RelationalTypeMappingSourceExtensions.GetMapping Metoda

Definice

Přetížení

GetMapping(IRelationalTypeMappingSource, IProperty)

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

GetMapping(IRelationalTypeMappingSource, String)

Získá mapování, které představuje daný typ databáze, vyvolá, pokud není nalezeno žádné mapování.

GetMapping(IRelationalTypeMappingSource, Type)

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

GetMapping(IRelationalTypeMappingSource, Type, IModel)

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

GetMapping(IRelationalTypeMappingSource, IProperty)

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

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMappingSource As IRelationalTypeMappingSource, property As IProperty) As RelationalTypeMapping

Parametry

typeMappingSource
IRelationalTypeMappingSource

Zdroj mapování typů.

property
IProperty

Vlastnost, pro která se má získat mapování.

Návraty

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

Platí pro

GetMapping(IRelationalTypeMappingSource, String)

Získá mapování, které představuje daný typ databáze, vyvolá, pokud není nalezeno žádné mapování.

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, string typeName);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMappingSource As IRelationalTypeMappingSource, typeName As String) As RelationalTypeMapping

Parametry

typeMappingSource
IRelationalTypeMappingSource

Zdroj mapování typů.

typeName
String

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

Návraty

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

Poznámky

Všimněte si, že někdy může mít stejný typ obchodu různá mapování; tato metoda vrátí výchozí hodnotu.

Platí pro

GetMapping(IRelationalTypeMappingSource, Type)

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

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, Type clrType);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMappingSource As IRelationalTypeMappingSource, clrType As Type) As RelationalTypeMapping

Parametry

typeMappingSource
IRelationalTypeMappingSource

Zdroj mapování typů.

clrType
Type

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

Návraty

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

Platí pro

GetMapping(IRelationalTypeMappingSource, Type, IModel)

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

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, Type clrType, Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Type * Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMappingSource As IRelationalTypeMappingSource, clrType As Type, model As IModel) As RelationalTypeMapping

Parametry

typeMappingSource
IRelationalTypeMappingSource

Zdroj mapování typů.

clrType
Type

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

model
IModel

Model.

Návraty

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

Platí pro