TypeMappingInfo 结构

定义

描述确定属性或类型的类型映射所需的元数据。

public readonly struct TypeMappingInfo : IEquatable<Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo>
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct TypeMappingInfo : IEquatable<Microsoft.EntityFrameworkCore.Storage.TypeMappingInfo>
type TypeMappingInfo = struct
[<System.Runtime.CompilerServices.IsReadOnly>]
type TypeMappingInfo = struct
Public Structure TypeMappingInfo
Implements IEquatable(Of TypeMappingInfo)
继承
TypeMappingInfo
属性
实现

注解

有关详细信息 和示例,请参阅数据库提供程序和扩展的实现

构造函数

TypeMappingInfo(IElementType, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(IProperty)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(IReadOnlyList<IProperty>)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(IReadOnlyList<IProperty>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(MemberInfo)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(MemberInfo, CoreTypeMapping, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(MemberInfo, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(Type)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(Type, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(Type, CoreTypeMapping, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

创建 TypeMappingInfo 的新实例。

TypeMappingInfo(TypeMappingInfo, ValueConverterInfo, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

使用给定 ValueConverterInfo的 创建 的新实例TypeMappingInfo

属性

ClrType

模型中的 CLR 类型。 如果通过其他方式传达类型信息, (例如关系类型映射信息中的存储名称)

ElementTypeMapping

映射的元素类型映射(如果有)。

IsKeyOrIndex

指示映射是否是键或索引的一部分。

IsRowVersion

指示映射是用于行版本 null ,还是未定义。

IsUnicode

指示映射是否支持 Unicode,或者 null 是否未定义。

JsonValueReaderWriter

JSON 读取器/编写器(如果已提供),否则 null 为 。

Precision

映射数据类型的建议精度。

Scale

映射数据类型的建议小数位数。

Size

指示用于映射的存储大小;如果没有,则为 null。

方法

Equals(Object)

如果表示相同的映射,则将此TypeMappingInfo与另一个检查进行比较。

Equals(TypeMappingInfo)

如果表示相同的映射,则将此TypeMappingInfo与另一个检查进行比较。

GetHashCode()

返回此对象的哈希代码。

ToString()

描述确定属性或类型的类型映射所需的元数据。

WithConverter(ValueConverterInfo)

返回应用给定转换器的新 TypeMappingInfo 值。

运算符

Equality(TypeMappingInfo, TypeMappingInfo)

描述确定属性或类型的类型映射所需的元数据。

Inequality(TypeMappingInfo, TypeMappingInfo)

描述确定属性或类型的类型映射所需的元数据。

适用于