共用方式為


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 類型。 如果類型資訊是透過其他方式來傳達,可能是 null (例如關聯式別對應資訊中的存放區名稱)

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)

描述決定屬性或類型之類型對應所需的中繼資料。

適用於