RelationalTypeMapperExtensions.GetMapping 方法

定义

重载

GetMapping(IRelationalTypeMapper, IProperty)
已过时.

获取给定属性的关系数据库类型,如果未找到映射,则引发该类型。

GetMapping(IRelationalTypeMapper, String)
已过时.

获取表示给定数据库类型的映射,如果未找到映射,则引发该映射。

请注意,有时相同的存储类型可以有不同的映射;此方法返回默认值。

GetMapping(IRelationalTypeMapper, Type)
已过时.

获取给定 .NET 类型的关系数据库类型,如果未找到映射,则引发该类型。

GetMapping(IRelationalTypeMapper, IProperty)

注意

Use IRelationalTypeMappingSource instead.

获取给定属性的关系数据库类型,如果未找到映射,则引发该类型。

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

参数

typeMapper
IRelationalTypeMapper

类型映射器。

property
IProperty

要获取其映射的属性。

返回

要使用的类型映射。

属性

适用于

GetMapping(IRelationalTypeMapper, String)

注意

Use IRelationalTypeMappingSource instead.

获取表示给定数据库类型的映射,如果未找到映射,则引发该映射。

请注意,有时相同的存储类型可以有不同的映射;此方法返回默认值。

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

参数

typeMapper
IRelationalTypeMapper

类型映射器。

typeName
String

要获取其映射的类型。

返回

要使用的类型映射。

属性

适用于

GetMapping(IRelationalTypeMapper, Type)

注意

Use IRelationalTypeMappingSource instead.

获取给定 .NET 类型的关系数据库类型,如果未找到映射,则引发该类型。

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

参数

typeMapper
IRelationalTypeMapper

类型映射器。

clrType
Type

要获取其映射的类型。

返回

要使用的类型映射。

属性

适用于