Annotatable Annotatable Class

Definition

Base class for types that support reading and writing annotations.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class Annotatable : IMutableAnnotatable, IAnnotatable
Public Class Annotatable
    Implements IMutableAnnotatable, IAnnotatable
Inheritance
System.ObjectSystem.Object
AnnotatableAnnotatable
Implements

Properties

Item[String] Item(String)

Gets the value annotation with the given name, returning null if it does not exist.

Methods

AddAnnotation(String, Annotation) AddAnnotation(String, Annotation)

Adds an annotation to this object. Throws if an annotation with the specified name already exists.

AddAnnotation(String, Object) AddAnnotation(String, Object)

Adds an annotation to this object. Throws if an annotation with the specified name already exists.

CreateAnnotation(String, Object) CreateAnnotation(String, Object)

Creates a new annotation.

System.Object.Equals(System.Object) System.Object.Equals(System.Object) Inherited from System.Object
System.Object.Equals(System.Object, System.Object) System.Object.Equals(System.Object, System.Object) Inherited from System.Object
FindAnnotation(String) FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

GetAnnotations() GetAnnotations()

Gets all annotations on the current object.

System.Object.GetHashCode() System.Object.GetHashCode() Inherited from System.Object
GetOrAddAnnotation(String, Object) GetOrAddAnnotation(String, Object)

Adds an annotation to this object or returns the existing annotation if one with the specified name already exists.

System.Object.GetType() System.Object.GetType() Inherited from System.Object
System.Object.MemberwiseClone() System.Object.MemberwiseClone() Inherited from System.Object
OnAnnotationSet(String, Annotation, Annotation) OnAnnotationSet(String, Annotation, Annotation)

Runs the corresponding conventions when an annotation was set or removed.

System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) Inherited from System.Object
RemoveAnnotation(String) RemoveAnnotation(String)

Removes the given annotation from this object.

SetAnnotation(String, Annotation) SetAnnotation(String, Annotation)

Sets the annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists.

System.Object.ToString() System.Object.ToString() Inherited from System.Object

Explicit Interface Implementations

IAnnotatable.FindAnnotation(String) Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

IAnnotatable.GetAnnotations() Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.GetAnnotations()

Gets all annotations on the current object.

Extension Methods

Microsoft.EntityFrameworkCore.MutableAnnotatableExtensions.GetOrAddAnnotation(System.String, System.String) Microsoft.EntityFrameworkCore.MutableAnnotatableExtensions.GetOrAddAnnotation(System.String, System.String)
Microsoft.EntityFrameworkCore.MutableAnnotatableExtensions.AddAnnotations(System.Collections.Generic.IEnumerable<IAnnotation>) Microsoft.EntityFrameworkCore.MutableAnnotatableExtensions.AddAnnotations(System.Collections.Generic.IEnumerable(Of IAnnotation))
Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableExtensions.GetAnnotation(System.String) Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableExtensions.GetAnnotation(System.String)
Microsoft.EntityFrameworkCore.Metadata.Internal.AnnotatableExtensions.AnnotationsToDebugString(System.String) Microsoft.EntityFrameworkCore.Metadata.Internal.AnnotatableExtensions.AnnotationsToDebugString(System.String)