共用方式為


ITypeMappingConfiguration 介面

定義

表示純量類型的組態。

public interface ITypeMappingConfiguration : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
type ITypeMappingConfiguration = interface
    interface IAnnotatable
    interface IReadOnlyAnnotatable
Public Interface ITypeMappingConfiguration
Implements IAnnotatable
衍生
實作

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

屬性

ClrType

取得這個 物件所設定的類型。

Item[String]

取得具有指定名稱的注釋值,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)

方法

AddRuntimeAnnotation(String, Object)

將執行時間批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

取得 物件上宣告之所有批註的偵錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

取得具有指定名稱的執行時間批註,如果不存在,則傳 null 回 。

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

取得具有指定名稱的執行時間批註值,如果不存在,則傳 null 回 。

(繼承來源 IAnnotatable)
GetAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前 物件上的所有批註。

(繼承來源 IReadOnlyAnnotatable)
GetMaxLength()

取得這個屬性中允許的資料長度上限。 例如,如果 屬性是 String ,則這是字元數上限。

GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

取得具有指定名稱的執行時間注釋值,如果不存在,請加以新增。

(繼承來源 IAnnotatable)
GetPrecision()

取得這個屬性中允許的資料有效位數。 例如,如果 屬性是 Decimal ,則這是最大位數。

GetProviderClrType()

取得屬性值在傳送至資料庫提供者之前要轉換成的型別。

GetRuntimeAnnotations()

取得目前 物件上的所有執行時間批註。

(繼承來源 IAnnotatable)
GetScale()

取得這個屬性中允許的資料小數位數。 例如,如果 屬性是 Decimal ,則這是小數位數的最大值。

GetValueConverter()

取得這個屬性的自訂 ValueConverter 集合。

IsUnicode()

取得值,指出屬性是否可以保存 Unicode 字元。

RemoveRuntimeAnnotation(String)

從這個 物件中移除指定的執行時間批註。

(繼承來源 IAnnotatable)
SetRuntimeAnnotation(String, Object)

設定儲存在指定索引鍵下的執行時間批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。

(繼承來源 IAnnotatable)

擴充方法

AnnotationsToDebugString(IAnnotatable, Int32)

取得 物件上宣告之所有批註的偵錯字串。

適用於