IAnnotatable インターフェイス

定義

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

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

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

注釈

詳細と例については、「 データベース プロバイダーと拡張機能の実装 」を参照してください。

プロパティ

Item[String]

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

メソッド

AddRuntimeAnnotation(String, Object)

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

AnnotationsToDebugString(Int32)

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

(継承元 IReadOnlyAnnotatable)
FindAnnotation(String)

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

FindRuntimeAnnotation(String)

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

FindRuntimeAnnotationValue(String)

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

GetAnnotation(String)

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

(継承元 IReadOnlyAnnotatable)
GetAnnotations()

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

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

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

GetRuntimeAnnotations()

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

RemoveRuntimeAnnotation(String)

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

SetRuntimeAnnotation(String, Object)

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

拡張メソッド

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

適用対象