IConventionAnnotatable インターフェイス

定義

変更できる注釈を公開するクラス。 注釈を使用すると、任意のメタデータをオブジェクトに格納できます。

このインターフェイスは、通常、データベース プロバイダー (およびその他の拡張機能) によって使用されます。 通常、アプリケーション コードでは使用されません。

public interface IConventionAnnotatable : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
public interface IConventionAnnotatable : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IConventionAnnotatable = interface
    interface IAnnotatable
type IConventionAnnotatable = interface
    interface IReadOnlyAnnotatable
Public Interface IConventionAnnotatable
Implements IAnnotatable
Public Interface IConventionAnnotatable
Implements IReadOnlyAnnotatable
派生
実装

注釈

詳細と例については、「 モデルの構築規則 」を参照してください。

プロパティ

Builder

このオブジェクトの構成に使用できるビルダーを取得します。

IsInModel

このオブジェクトがモデル内にあるかどうか、つまり、モデルから削除されていないかどうかを示します。

Item[String]

指定した名前の注釈の値を取得し、存在しない場合は を null 返します。

(継承元 IReadOnlyAnnotatable)

メソッド

AddAnnotation(String, Object, Boolean)

このオブジェクトに注釈を追加します。 指定した名前の注釈が既に存在する場合は をスローします。

AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

オブジェクトに注釈を追加します。

AddRuntimeAnnotation(String, Object)

このオブジェクトにランタイム注釈を追加します。 指定した名前の注釈が既に存在する場合は をスローします。

(継承元 IAnnotatable)
AnnotationsToDebugString(Int32)

オブジェクトで宣言されているすべての注釈のデバッグ文字列を取得します。

(継承元 IReadOnlyAnnotatable)
FindAnnotation(String)

指定した名前の注釈を取得し、存在しない場合は を null 返します。

FindRuntimeAnnotation(String)

指定された名前のランタイム注釈を取得し、存在しない場合は を null 返します。

(継承元 IAnnotatable)
FindRuntimeAnnotationValue(String)

指定された名前のランタイム注釈の値を取得し、存在しない場合は を null 返します。

(継承元 IAnnotatable)
GetAnnotation(String)

指定した名前の注釈を取得し、存在しない場合は をスローします。

GetAnnotations()

現在の オブジェクトのすべての注釈を取得します。

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

指定された名前のランタイム注釈の値を取得し、存在しない場合は追加します。

(継承元 IAnnotatable)
GetRuntimeAnnotations()

現在の オブジェクトのすべてのランタイム注釈を取得します。

(継承元 IAnnotatable)
RemoveAnnotation(String)

指定した名前の注釈をこのオブジェクトから削除します。

RemoveRuntimeAnnotation(String)

指定されたランタイム注釈をこのオブジェクトから削除します。

(継承元 IAnnotatable)
SetAnnotation(String, Object, Boolean)

指定した名前の下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

SetOrRemoveAnnotation(String, Object, Boolean)

指定した名前の下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。 が指定されている場合 null は、既存の注釈を削除します。

SetRuntimeAnnotation(String, Object)

指定したキーの下に格納されているランタイム注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

(継承元 IAnnotatable)

拡張メソッド

AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)

オブジェクトに注釈を追加します。

GetAnnotation(IConventionAnnotatable, String)

指定した名前の注釈を取得し、存在しない場合は をスローします。

SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)

指定した名前の下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。 が指定されている場合 null は、既存の注釈を削除します。

AnnotationsToDebugString(IAnnotatable, Int32)

オブジェクトで宣言されているすべての注釈のデバッグ文字列を取得します。

GetAnnotation(IAnnotatable, String)

指定した名前の注釈を取得し、存在しない場合は をスローします。

適用対象