RelationalTypeMappingInfo 结构

定义

描述确定属性、类型或提供程序特定关系类型名称的关系类型映射所需的元数据。

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

注解

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

构造函数

RelationalTypeMappingInfo(IElementType, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

创建 RelationalTypeMappingInfo 的新实例。

RelationalTypeMappingInfo(IProperty)

创建 RelationalTypeMappingInfo 的新实例。

RelationalTypeMappingInfo(IReadOnlyList<IProperty>)

创建 RelationalTypeMappingInfo 的新实例。

RelationalTypeMappingInfo(IReadOnlyList<IProperty>, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

创建 RelationalTypeMappingInfo 的新实例。

RelationalTypeMappingInfo(MemberInfo)

创建 RelationalTypeMappingInfo 的新实例。

RelationalTypeMappingInfo(MemberInfo, RelationalTypeMapping, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

创建 RelationalTypeMappingInfo 的新实例。

RelationalTypeMappingInfo(MemberInfo, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

创建 RelationalTypeMappingInfo 的新实例。

RelationalTypeMappingInfo(RelationalTypeMappingInfo, ValueConverterInfo)

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

RelationalTypeMappingInfo(String)

创建 RelationalTypeMappingInfo 的新实例。

RelationalTypeMappingInfo(String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

创建 RelationalTypeMappingInfo 的新实例。

RelationalTypeMappingInfo(Type)

创建 RelationalTypeMappingInfo 的新实例。

RelationalTypeMappingInfo(Type, RelationalTypeMapping, String, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Nullable<DbType>)

创建 TypeMappingInfo 的新实例。

RelationalTypeMappingInfo(Type, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

创建 TypeMappingInfo 的新实例。

RelationalTypeMappingInfo(Type, String, String, Boolean, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

创建 TypeMappingInfo 的新实例。

属性

ClrType

模型中的 CLR 类型。

CoreTypeMappingInfo

核心类型映射信息。

DbType

DbType映射的 。

ElementTypeMapping

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

IsFixedLength

映射的数据类型是否为固定长度。

IsKeyOrIndex

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

IsRowVersion

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

IsUnicode

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

JsonValueReaderWriter

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

Precision

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

Scale

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

Size

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

StoreTypeName

需要映射的提供程序特定的关系类型名称。

StoreTypeNameBase

特定于提供程序的关系类型名称,其中删除了任何方面。

StoreTypeNameSizeIsMax

True 如果存储类型名称以“ (max) ”结尾,则为 。

方法

Equals(Object)

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

Equals(RelationalTypeMappingInfo)

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

GetHashCode()

返回此对象的哈希代码。

ToString()

描述确定属性、类型或提供程序特定关系类型名称的关系类型映射所需的元数据。

WithConverter(ValueConverterInfo)

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

运算符

Equality(RelationalTypeMappingInfo, RelationalTypeMappingInfo)

描述确定属性、类型或提供程序特定关系类型名称的关系类型映射所需的元数据。

Inequality(RelationalTypeMappingInfo, RelationalTypeMappingInfo)

描述确定属性、类型或提供程序特定关系类型名称的关系类型映射所需的元数据。

适用于