Language

AnnotatableBase クラス

定義

注釈の読み取りと書き込みをサポートする型の基本クラス。

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

[System.Runtime.CompilerServices.Nullable(0)]
public class AnnotatableBase : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
public class AnnotatableBase : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
[<System.Runtime.CompilerServices.Nullable(0)>]
type AnnotatableBase = class
    interface IAnnotatable
    interface IReadOnlyAnnotatable
type AnnotatableBase = class
    interface IAnnotatable
    interface IReadOnlyAnnotatable
Public Class AnnotatableBase
Implements IAnnotatable
継承
AnnotatableBase
派生
属性
実装

注釈

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

コンストラクター

Name 説明
AnnotatableBase()

注釈の読み取りと書き込みをサポートする型の基本クラス。

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

プロパティ

Name 説明
IsReadOnly

現在のオブジェクトが読み取り専用かどうかを示します。

Item[String]

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

メソッド

Name 説明
AddAnnotation(String, Annotation)

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

AddAnnotation(String, Object)

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

AddAnnotations(IEnumerable<IAnnotation>)

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

AddAnnotations(IReadOnlyDictionary<String,Object>)

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

AddRuntimeAnnotation(String, Annotation)

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

AddRuntimeAnnotation(String, Object)

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

AddRuntimeAnnotations(IEnumerable<Annotation>)

このオブジェクトにランタイム注釈を追加します。

AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

このオブジェクトにランタイム注釈を追加します。

CreateAnnotation(String, Object)

新しい注釈を作成します。

CreateRuntimeAnnotation(String, Object)

新しいランタイム注釈を作成します。

EnsureMutable()

モデルが読み取り専用の場合にスローします。

EnsureReadOnly()

モデルが読み取り専用でない場合にスローします。

FindAnnotation(String)

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

FindRuntimeAnnotation(String)

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

GetAnnotation(String)

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

GetAnnotations()

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

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

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

GetRuntimeAnnotations()

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

OnAnnotationSet(String, Annotation, Annotation)

注釈が設定または削除されたときに呼び出されます。

RemoveAnnotation(String)

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

RemoveRuntimeAnnotation(String)

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

SetAnnotation(String, Annotation, Annotation)

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

SetAnnotation(String, Object)

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

SetRuntimeAnnotation(String, Annotation, Annotation)

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

SetRuntimeAnnotation(String, Object)

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

明示的なインターフェイスの実装

Name 説明
IAnnotatable.AddRuntimeAnnotation(String, Object)

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

IAnnotatable.FindRuntimeAnnotation(String)

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

IAnnotatable.GetRuntimeAnnotations()

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

IAnnotatable.RemoveRuntimeAnnotation(String)

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

IAnnotatable.SetRuntimeAnnotation(String, Object)

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

IReadOnlyAnnotatable.FindAnnotation(String)

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

IReadOnlyAnnotatable.GetAnnotations()

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

IReadOnlyAnnotatable.Item[String]

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

拡張メソッド

Name 説明
AnnotationsToDebugString(IAnnotatable, Int32)

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

適用対象