RelationalTypeMapperExtensions.GetMapping 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
要获取其映射的类型。
返回
要使用的类型映射。
- 属性
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈