Udostępnij za pośrednictwem


RelationalTypeMapperExtensions.GetMapping Metoda

Definicja

Przeciążenia

GetMapping(IRelationalTypeMapper, IProperty)
Przestarzałe.

Pobiera typ relacyjnej bazy danych dla danej właściwości, zgłaszając, jeśli nie znaleziono mapowania.

GetMapping(IRelationalTypeMapper, String)
Przestarzałe.

Pobiera mapowanie reprezentujące dany typ bazy danych, zgłaszając, jeśli nie znaleziono mapowania.

Należy pamiętać, że czasami ten sam typ magazynu może mieć różne mapowania; Ta metoda zwraca wartość domyślną.

GetMapping(IRelationalTypeMapper, Type)
Przestarzałe.

Pobiera typ relacyjnej bazy danych dla danego typu platformy .NET, zgłaszany w przypadku znalezienia mapowania.

GetMapping(IRelationalTypeMapper, IProperty)

Przestroga

Use IRelationalTypeMappingSource instead.

Pobiera typ relacyjnej bazy danych dla danej właściwości, zgłaszając, jeśli nie znaleziono mapowania.

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use IRelationalTypeMappingSource instead.")]
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
[<System.Obsolete("Use IRelationalTypeMappingSource instead.")>]
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMapper As IRelationalTypeMapper, property As IProperty) As RelationalTypeMapping

Parametry

typeMapper
IRelationalTypeMapper

Maper typu.

property
IProperty

Właściwość do pobrania mapowania.

Zwraca

Mapowanie typów do użycia.

Atrybuty

Dotyczy

GetMapping(IRelationalTypeMapper, String)

Przestroga

Use IRelationalTypeMappingSource instead.

Pobiera mapowanie reprezentujące dany typ bazy danych, zgłaszając, jeśli nie znaleziono mapowania.

Należy pamiętać, że czasami ten sam typ magazynu może mieć różne mapowania; Ta metoda zwraca wartość domyślną.

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, string typeName);
[System.Obsolete("Use IRelationalTypeMappingSource instead.")]
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, string typeName);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
[<System.Obsolete("Use IRelationalTypeMappingSource instead.")>]
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMapper As IRelationalTypeMapper, typeName As String) As RelationalTypeMapping

Parametry

typeMapper
IRelationalTypeMapper

Maper typu.

typeName
String

Typ, dla który ma być uzyskiwane mapowanie.

Zwraca

Mapowanie typów do użycia.

Atrybuty

Dotyczy

GetMapping(IRelationalTypeMapper, Type)

Przestroga

Use IRelationalTypeMappingSource instead.

Pobiera typ relacyjnej bazy danych dla danego typu platformy .NET, zgłaszany w przypadku znalezienia mapowania.

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Type clrType);
[System.Obsolete("Use IRelationalTypeMappingSource instead.")]
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping GetMapping (this Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Type clrType);
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
[<System.Obsolete("Use IRelationalTypeMappingSource instead.")>]
static member GetMapping : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function GetMapping (typeMapper As IRelationalTypeMapper, clrType As Type) As RelationalTypeMapping

Parametry

typeMapper
IRelationalTypeMapper

Maper typu.

clrType
Type

Typ, dla który ma być uzyskiwane mapowanie.

Zwraca

Mapowanie typów do użycia.

Atrybuty

Dotyczy