IMutableAnnotatable IMutableAnnotatable Interface

Definition

A class that exposes annotations that can be modified. Annotations allow for arbitrary metadata to be stored on an object.

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

public interface IMutableAnnotatable : IAnnotatable
Public Interface IMutableAnnotatable
    Inherits IAnnotatable

Properties

Item[String] Item(String)

Gets or sets the value of the annotation with the given name.

Methods

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

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

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.

RemoveAnnotation(String) RemoveAnnotation(String)

Removes the given annotation from this 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)